[PATCH] winedbg: Accept hex values in command line

Eric Pouech eric.pouech at gmail.com
Thu Jul 1 09:33:44 CDT 2021


From: Eric Pouech <eric.pouech at gmail.com>

In Winedbg, when parsing integral values from command line (mainly pid and event),
allow hexadecimal values (prefixed by 0x)

Signed-off-by: Eric Pouech <eric.pouech at gmail.com>


---
 programs/winedbg/tgt_active.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/programs/winedbg/tgt_active.c b/programs/winedbg/tgt_active.c
index c9072d5b81c..508e1c58040 100644
--- a/programs/winedbg/tgt_active.c
+++ b/programs/winedbg/tgt_active.c
@@ -667,7 +667,7 @@ static BOOL str2int(const char* str, DWORD_PTR* val)
 {
     char*   ptr;
 
-    *val = strtol(str, &ptr, 10);
+    *val = strtol(str, &ptr, 0);
     return str < ptr && !*ptr;
 }
 




More information about the wine-devel mailing list