From 6ad7ff09a93277dc9721f4c1434c2f85a3deb121 Mon Sep 17 00:00:00 2001 From: thexai <58434170+thexai@users.noreply.github.com> Date: Tue, 30 Jun 2026 16:03:18 +0200 Subject: [PATCH] gh-152433 Windows: ``faulthandler.c`` allow build in UWP --- Modules/faulthandler.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Modules/faulthandler.c b/Modules/faulthandler.c index 3b0647152ceffed..21734d068270c56 100644 --- a/Modules/faulthandler.c +++ b/Modules/faulthandler.c @@ -581,7 +581,7 @@ faulthandler_enable(void) handler->enabled = 1; } -#ifdef MS_WINDOWS +#ifdef MS_WINDOWS_DESKTOP assert(fatal_error.exc_handler == NULL); fatal_error.exc_handler = AddVectoredExceptionHandler(1, faulthandler_exc_handler); #endif @@ -645,7 +645,7 @@ faulthandler_disable(void) faulthandler_disable_fatal_handler(handler); } } -#ifdef MS_WINDOWS +#ifdef MS_WINDOWS_DESKTOP if (fatal_error.exc_handler != NULL) { RemoveVectoredExceptionHandler(fatal_error.exc_handler); fatal_error.exc_handler = NULL;