From 9551a5c3f00a8185f26f227a431f43ef1a0c5865 Mon Sep 17 00:00:00 2001 From: FunkyFr3sh Date: Fri, 23 Sep 2022 23:59:25 +0200 Subject: [PATCH] log exceptions to cnc-ddraw.log as well --- src/debug.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/debug.c b/src/debug.c index f418d72..990fe50 100644 --- a/src/debug.c +++ b/src/debug.c @@ -46,6 +46,11 @@ int dbg_exception_handler(EXCEPTION_POINTERS* exception) CloseHandle(dmp); } + dbg_printf( + "Exception at %p (%08X)\n", + exception->ExceptionRecord->ExceptionAddress, + exception->ExceptionRecord->ExceptionCode); + return EXCEPTION_EXECUTE_HANDLER; } #endif