kernelbase: Fix fault address printing for the PE build.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
5ecb8197b6
commit
eac5237921
|
@ -462,10 +462,10 @@ static void format_exception_msg( const EXCEPTION_POINTERS *ptr, char *buffer, i
|
||||||
break;
|
break;
|
||||||
case EXCEPTION_ACCESS_VIOLATION:
|
case EXCEPTION_ACCESS_VIOLATION:
|
||||||
if (rec->NumberParameters == 2)
|
if (rec->NumberParameters == 2)
|
||||||
len = snprintf( buffer, size, "Unhandled page fault on %s access to 0x%08lx",
|
len = snprintf( buffer, size, "Unhandled page fault on %s access to %p",
|
||||||
rec->ExceptionInformation[0] == EXCEPTION_WRITE_FAULT ? "write" :
|
rec->ExceptionInformation[0] == EXCEPTION_WRITE_FAULT ? "write" :
|
||||||
rec->ExceptionInformation[0] == EXCEPTION_EXECUTE_FAULT ? "execute" : "read",
|
rec->ExceptionInformation[0] == EXCEPTION_EXECUTE_FAULT ? "execute" : "read",
|
||||||
rec->ExceptionInformation[1]);
|
(void *)rec->ExceptionInformation[1]);
|
||||||
else
|
else
|
||||||
len = snprintf( buffer, size, "Unhandled page fault");
|
len = snprintf( buffer, size, "Unhandled page fault");
|
||||||
break;
|
break;
|
||||||
|
@ -476,8 +476,8 @@ static void format_exception_msg( const EXCEPTION_POINTERS *ptr, char *buffer, i
|
||||||
len = snprintf( buffer, size, "Unhandled ^C");
|
len = snprintf( buffer, size, "Unhandled ^C");
|
||||||
break;
|
break;
|
||||||
case STATUS_POSSIBLE_DEADLOCK:
|
case STATUS_POSSIBLE_DEADLOCK:
|
||||||
len = snprintf( buffer, size, "Critical section %08lx wait failed",
|
len = snprintf( buffer, size, "Critical section %p wait failed",
|
||||||
rec->ExceptionInformation[0]);
|
(void *)rec->ExceptionInformation[0]);
|
||||||
break;
|
break;
|
||||||
case EXCEPTION_WINE_STUB:
|
case EXCEPTION_WINE_STUB:
|
||||||
if ((ULONG_PTR)rec->ExceptionInformation[1] >> 16)
|
if ((ULONG_PTR)rec->ExceptionInformation[1] >> 16)
|
||||||
|
|
Loading…
Reference in New Issue