kernel: specify number base of thread in exception output

Thomas Kho tkho at ucla.edu
Fri Jul 28 13:54:08 CDT 2006


kernel: specify number base of thread in exception output

I got the exception

wine: Unhandled page fault on read access to 0x00000034 at address 0x7da4ea8d
(thread 0010), starting debugger...

which was a bit confusing at first because addresses had the 0x prefix.

Thomas Kho

diff --git a/dlls/kernel/except.c b/dlls/kernel/except.c
index 8ff81f2..be217e7 100644
--- a/dlls/kernel/except.c
+++ b/dlls/kernel/except.c
@@ -202,7 +202,8 @@ static BOOL	start_debugger(PEXCEPTION_PO
     static const WCHAR AutoW[] = {'A','u','t','o',0};
 
     format_exception_msg( epointers, buffer, sizeof(buffer) );
-    MESSAGE("wine: %s (thread %04lx), starting debugger...\n", buffer, GetCurrentThreadId());
+    MESSAGE("wine: %s (thread 0x%04lx), starting debugger...\n", buffer,
+            GetCurrentThreadId());
 
     attr.Length = sizeof(attr);
     attr.RootDirectory = 0;



More information about the wine-patches mailing list