Commit 24eb754a authored by Eric Pouech's avatar Eric Pouech Committed by Alexandre Julliard

winedbg: In print_hex, don't print bits not included in size.

parent d81e7570
......@@ -337,7 +337,8 @@ static void dbg_print_hex(DWORD size, ULONGLONG sv)
if (!sv)
dbg_printf("0");
else
dbg_printf("%#I64x", sv);
/* clear unneeded high bits, esp. sign extension */
dbg_printf("%#I64x", sv & (~0LLU >> (64 - 8 * size)));
}
static void print_typed_basic(const struct dbg_lvalue* lvalue)
......
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