From abf57030362d8bd2916dbfadc874cebed9c402e0 Mon Sep 17 00:00:00 2001 From: fgsfds Date: Thu, 19 Oct 2023 12:32:57 +0200 Subject: [PATCH] port: only disable crash handlers if they were installed --- port/src/crash.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/port/src/crash.c b/port/src/crash.c index ec3ca5b47..77a8228ed 100644 --- a/port/src/crash.c +++ b/port/src/crash.c @@ -310,6 +310,9 @@ void crashInit(void) void crashShutdown(void) { + if (!g_CrashEnabled) { + return; + } #ifdef PLATFORM_WIN32 if (prevExFilter) { SetUnhandledExceptionFilter(prevExFilter);