We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
faulthandler.c
1 parent ecdef17 commit 6ad7ff0Copy full SHA for 6ad7ff0
1 file changed
Modules/faulthandler.c
@@ -581,7 +581,7 @@ faulthandler_enable(void)
581
handler->enabled = 1;
582
}
583
584
-#ifdef MS_WINDOWS
+#ifdef MS_WINDOWS_DESKTOP
585
assert(fatal_error.exc_handler == NULL);
586
fatal_error.exc_handler = AddVectoredExceptionHandler(1, faulthandler_exc_handler);
587
#endif
@@ -645,7 +645,7 @@ faulthandler_disable(void)
645
faulthandler_disable_fatal_handler(handler);
646
647
648
649
if (fatal_error.exc_handler != NULL) {
650
RemoveVectoredExceptionHandler(fatal_error.exc_handler);
651
fatal_error.exc_handler = NULL;
0 commit comments