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@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Zebediah Figura 2018-05-15 15:02:23 -05:00 committed by Alexandre Julliard
parent 1c38d47e4d
commit 9321aa40f5
1 changed files with 2 additions and 2 deletions

View File

@ -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