OSDN Git Service

dllpstub.cpp: Fix for 64bit
authorsdottaka <sdottaka@users.sourceforge.net>
Sun, 24 May 2015 08:53:06 +0000 (17:53 +0900)
committersdottaka <sdottaka@users.sourceforge.net>
Sun, 24 May 2015 08:53:06 +0000 (17:53 +0900)
--HG--
branch : stable

Src/dllpstub.cpp

index 72f67fa..d3b94c4 100644 (file)
@@ -42,7 +42,7 @@ void DLLPSTUB::Throw(LPCSTR name, HMODULE handle, DWORD dwError, BOOL bFreeLibra
                module[0] = '@';
                if (::GetModuleFileName(handle, module + 1, 4095) == 0)
                {
-                       wsprintf(module + 1, _T("%08lX"), handle);
+                       wsprintf(module + 1, _T("%p"), handle);
                }
                strError += strError.IsEmpty() ? module + 1 : module;
        }