From 8fa319264d9666ed453ee7a80266318a35248869 Mon Sep 17 00:00:00 2001 From: David Welch Date: Tue, 24 May 2005 09:49:56 +0000 Subject: [PATCH] Fix decoding of thread IDs in the gdbproxy. --- programs/winedbg/gdbproxy.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/programs/winedbg/gdbproxy.c b/programs/winedbg/gdbproxy.c index 1c5d7f62980..b9bc2854132 100644 --- a/programs/winedbg/gdbproxy.c +++ b/programs/winedbg/gdbproxy.c @@ -126,7 +126,8 @@ static inline unsigned char hex_to0(int x) static int hex_to_int(const char* src, size_t len){ unsigned int returnval = 0; while (len--){ - returnval=hex_from0(src[0]); + returnval|=hex_from0(src[0]); + src++; if(len) returnval<<=4; } return returnval;