port: only disable crash handlers if they were installed

This commit is contained in:
fgsfds committed 2023-10-19 12:32:57 +02:00
1 parent b8e6e19ef5
commit abf5703036
1 file changed
+3
+3
View File
@@ -310,6 +310,9 @@ void crashInit(void)
void crashShutdown(void)
{
if (!g_CrashEnabled) {
return;
}
#ifdef PLATFORM_WIN32
if (prevExFilter) {
SetUnhandledExceptionFilter(prevExFilter);