#4978 Fixed HANDLE string formatting on 64bit Windows

This commit is contained in:
Andrew Nelless 2016-06-24 13:30:44 +01:00 committed by Jerry (Xinyu Hou)
parent bc24568a6f
commit 3ead310161
1 changed files with 1 additions and 1 deletions

View File

@ -153,7 +153,7 @@ ArchSystemWindows::getLibsUsed(void) const
for (i = 0; i < (cbNeeded / sizeof(HMODULE)); i++) {
TCHAR szModName[MAX_PATH];
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.append(hex);
msg.append("\n");