#4978 Fixed HANDLE string formatting on 64bit Windows
This commit is contained in:
parent
bc24568a6f
commit
3ead310161
|
@ -153,7 +153,7 @@ ArchSystemWindows::getLibsUsed(void) const
|
||||||
for (i = 0; i < (cbNeeded / sizeof(HMODULE)); i++) {
|
for (i = 0; i < (cbNeeded / sizeof(HMODULE)); i++) {
|
||||||
TCHAR szModName[MAX_PATH];
|
TCHAR szModName[MAX_PATH];
|
||||||
if (GetModuleFileNameEx(hProcess, hMods[i], szModName, sizeof(szModName) / sizeof(TCHAR))) {
|
if (GetModuleFileNameEx(hProcess, hMods[i], szModName, sizeof(szModName) / sizeof(TCHAR))) {
|
||||||
sprintf(hex,"(0x%08X)",hMods[i]);
|
sprintf(hex, "(0x%08llX)", reinterpret_cast<long long>(hMods[i]));
|
||||||
msg += szModName;
|
msg += szModName;
|
||||||
msg.append(hex);
|
msg.append(hex);
|
||||||
msg.append("\n");
|
msg.append("\n");
|
||||||
|
|
Loading…
Reference in New Issue