Alexandre Julliard : kernelbase: Fix fault address printing for the PE build.
Alexandre Julliard
julliard at winehq.org
Wed Oct 23 15:31:31 CDT 2019
Module: wine
Branch: master
Commit: eac5237921b4431dace4437137c16f212b6ceae5
URL: https://source.winehq.org/git/wine.git/?a=commit;h=eac5237921b4431dace4437137c16f212b6ceae5
Author: Alexandre Julliard <julliard at winehq.org>
Date: Wed Oct 23 21:08:13 2019 +0200
kernelbase: Fix fault address printing for the PE build.
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
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 016c211097..f79be7fa6f 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)
More information about the wine-cvs
mailing list