From 28ae8c40ded5ea3955446ebc59bbef50e42b9ef2 Mon Sep 17 00:00:00 2001 From: Ralf Habacker Date: Thu, 22 Mar 2018 15:05:48 +0100 Subject: [PATCH] sysdeps-win: Print word-size-dependent offset correctly AddrPC.Offset is the same size as a pointer, but previously we printed it as though it was the same size as a long, which is 32 bits on 64-bit Windows. Bug: https://bugs.freedesktop.org/show_bug.cgi?id=105662 --- dbus/dbus-sysdeps-win.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dbus/dbus-sysdeps-win.c b/dbus/dbus-sysdeps-win.c index 70200e7f..c1eb073e 100644 --- a/dbus/dbus-sysdeps-win.c +++ b/dbus/dbus-sysdeps-win.c @@ -2659,7 +2659,7 @@ static void dump_backtrace_for_thread (HANDLE hThread) DPRINTF ("%3d %s", i++, pSymbol->Name); } else - DPRINTF ("%3d 0x%lx", i++, sf.AddrPC.Offset); + DPRINTF ("%3d 0x%Ix", i++, sf.AddrPC.Offset); line.SizeOfStruct = sizeof(IMAGEHLP_LINE); if (SymGetLineFromAddr (GetCurrentProcess (), sf.AddrPC.Offset, &dwDisplacement, &line)) -- 2.12.3