From 41ff75ce3650f4e827fdf892db97972051b6501a Mon Sep 17 00:00:00 2001 From: Timo Kreuzer Date: Sun, 21 Apr 2024 13:08:34 +0300 Subject: [PATCH] [RTL] actctx.c: Revert __TRY / __EXCEPT changes --- sdk/lib/rtl/actctx.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/sdk/lib/rtl/actctx.c b/sdk/lib/rtl/actctx.c index 25cffbafec2..ea3cc70bafd 100644 --- a/sdk/lib/rtl/actctx.c +++ b/sdk/lib/rtl/actctx.c @@ -22,6 +22,7 @@ #include #include +#include "wine/exception.h" #define GetProcessHeap() RtlGetProcessHeap() #define GetCurrentProcess() NtCurrentProcess() @@ -1158,7 +1159,7 @@ static ACTIVATION_CONTEXT *check_actctx( HANDLE h ) PACTIVATION_CONTEXT_WRAPPED pActual; if (!h || h == INVALID_HANDLE_VALUE) return NULL; - _SEH2_TRY + __TRY { if (actctx) { @@ -1166,11 +1167,11 @@ static ACTIVATION_CONTEXT *check_actctx( HANDLE h ) if (pActual->MagicMarker == ACTCTX_MAGIC_MARKER) ret = &pActual->ActivationContext; } } - _SEH2_EXCEPT(EXCEPTION_EXECUTE_HANDLER) + __EXCEPT_PAGE_FAULT { DPRINT1("Invalid activation context handle!\n"); } - _SEH2_END; + __ENDTRY return ret; }