diff --git a/dlls/kernel32/except.c b/dlls/kernel32/except.c index 2a9f0f14d33..de244fc2734 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