From dede1815fa7322e23cce847323666a751ea8a5fa Mon Sep 17 00:00:00 2001 From: FunkyFr3sh Date: Tue, 7 Mar 2023 21:30:28 +0100 Subject: [PATCH] improve crash logs --- src/debug.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/debug.c b/src/debug.c index 83eabc7..459388a 100644 --- a/src/debug.c +++ b/src/debug.c @@ -60,8 +60,10 @@ int dbg_exception_handler(EXCEPTION_POINTERS* exception) } TRACE( - "Exception at %p (%08X) %s\n", + "Exception at %p (%p+%p), Code=%08X - %s\n", exception->ExceptionRecord->ExceptionAddress, + mod, + (int)exception->ExceptionRecord->ExceptionAddress - (int)mod, exception->ExceptionRecord->ExceptionCode, filename); }