Zebediah Figura : kernel32: Check only the low word of CS when printing exceptions.

Alexandre Julliard julliard at winehq.org
Tue May 15 16:25:23 CDT 2018


Module: wine
Branch: master
Commit: 9321aa40f5ba79352d346c04f4d428d143575fb9
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=9321aa40f5ba79352d346c04f4d428d143575fb9

Author: Zebediah Figura <z.figura12 at gmail.com>
Date:   Tue May 15 15:02:23 2018 -0500

kernel32: Check only the low word of CS when printing exceptions.

Fixes messages along the lines of
wine: Unhandled page fault at address 0xf7bd0023:0x7b43d14c (thread 006c), starting debugger...

Signed-off-by: Zebediah Figura <z.figura12 at gmail.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/kernel32/except.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/dlls/kernel32/except.c b/dlls/kernel32/except.c
index 2a9f0f1..de244fc 100644
--- a/dlls/kernel32/except.c
+++ b/dlls/kernel32/except.c
@@ -150,9 +150,9 @@ static int format_exception_msg( const EXCEPTION_POINTERS *ptr, char *buffer, in
     if ((len<0) || (len>=size))
         return -1;
 #ifdef __i386__
-    if (ptr->ContextRecord->SegCs != wine_get_cs())
+    if (LOWORD(ptr->ContextRecord->SegCs) != wine_get_cs())
         len2 = snprintf(buffer+len, size-len, " at address 0x%04x:0x%08x",
-                        ptr->ContextRecord->SegCs,
+                        LOWORD(ptr->ContextRecord->SegCs),
                         (DWORD)ptr->ExceptionRecord->ExceptionAddress);
     else
 #endif




More information about the wine-cvs mailing list