Eric Pouech : winedbg: In print_hex, don't print bits not included in size.
Alexandre Julliard
julliard at winehq.org
Wed Dec 1 15:23:51 CST 2021
Module: wine
Branch: master
Commit: 24eb754af6991ca45f141b5ba5e6bbf7c03456cf
URL: https://source.winehq.org/git/wine.git/?a=commit;h=24eb754af6991ca45f141b5ba5e6bbf7c03456cf
Author: Eric Pouech <eric.pouech at gmail.com>
Date: Wed Dec 1 15:30:53 2021 +0100
winedbg: In print_hex, don't print bits not included in size.
Signed-off-by: Eric Pouech <eric.pouech at gmail.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
programs/winedbg/memory.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/programs/winedbg/memory.c b/programs/winedbg/memory.c
index f7baf3e6381..1653736e919 100644
--- a/programs/winedbg/memory.c
+++ b/programs/winedbg/memory.c
@@ -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)
More information about the wine-cvs
mailing list