Commit 4ae9f399 authored by Henri Verbeet's avatar Henri Verbeet Committed by Alexandre Julliard

winedump: Make print_longlong() work on 64-bit.

In particular, when long is a 64-bit type, the upper 32 bits would previously be printed twice. Signed-off-by: 's avatarHenri Verbeet <hverbeet@codeweavers.com> Signed-off-by: 's avatarAlexandre Julliard <julliard@winehq.org>
parent caa03946
......@@ -182,7 +182,7 @@ static inline void print_dword(const char *title, DWORD value)
static inline void print_longlong(const char *title, ULONGLONG value)
{
printf(" %-34s 0x", title);
if(value >> 32)
if (sizeof(value) > sizeof(unsigned long) && value >> 32)
printf("%lx%08lx\n", (unsigned long)(value >> 32), (unsigned long)value);
else
printf("%lx\n", (unsigned long)value);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment