Commit 9321aa40 authored by Zebediah Figura's avatar Zebediah Figura Committed by Alexandre Julliard

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: 's avatarZebediah Figura <z.figura12@gmail.com> Signed-off-by: 's avatarAlexandre Julliard <julliard@winehq.org>
parent 1c38d47e
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment