From eac5237921b4431dace4437137c16f212b6ceae5 Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Wed, 23 Oct 2019 21:08:13 +0200 Subject: [PATCH] kernelbase: Fix fault address printing for the PE build. Signed-off-by: Alexandre Julliard --- dlls/kernelbase/debug.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/dlls/kernelbase/debug.c b/dlls/kernelbase/debug.c index 016c211097d..f79be7fa6fc 100644 --- a/dlls/kernelbase/debug.c +++ b/dlls/kernelbase/debug.c @@ -462,10 +462,10 @@ static void format_exception_msg( const EXCEPTION_POINTERS *ptr, char *buffer, i break; case EXCEPTION_ACCESS_VIOLATION: 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_EXECUTE_FAULT ? "execute" : "read", - rec->ExceptionInformation[1]); + (void *)rec->ExceptionInformation[1]); else len = snprintf( buffer, size, "Unhandled page fault"); break; @@ -476,8 +476,8 @@ static void format_exception_msg( const EXCEPTION_POINTERS *ptr, char *buffer, i len = snprintf( buffer, size, "Unhandled ^C"); break; case STATUS_POSSIBLE_DEADLOCK: - len = snprintf( buffer, size, "Critical section %08lx wait failed", - rec->ExceptionInformation[0]); + len = snprintf( buffer, size, "Critical section %p wait failed", + (void *)rec->ExceptionInformation[0]); break; case EXCEPTION_WINE_STUB: if ((ULONG_PTR)rec->ExceptionInformation[1] >> 16)