From 3ead310161837af7a6075a75192ea580a38e9b4f Mon Sep 17 00:00:00 2001 From: Andrew Nelless Date: Fri, 24 Jun 2016 13:30:44 +0100 Subject: [PATCH] #4978 Fixed HANDLE string formatting on 64bit Windows --- src/lib/arch/win32/ArchSystemWindows.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/arch/win32/ArchSystemWindows.cpp b/src/lib/arch/win32/ArchSystemWindows.cpp index 0fe1e805..01d4b3d3 100644 --- a/src/lib/arch/win32/ArchSystemWindows.cpp +++ b/src/lib/arch/win32/ArchSystemWindows.cpp @@ -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(hMods[i])); msg += szModName; msg.append(hex); msg.append("\n");