From 7eac585ebf80a993626158e48be5bfe338b22476 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Herv=C3=A9=20Poussineau?= Date: Thu, 26 Mar 2020 16:24:59 +0100 Subject: [PATCH] [SDK] Fix dummy SEH to always reference the parameter in _SEH2_EXCEPT Otherwise, we may have compilation errors if this parameter is the name of a static function. --- sdk/include/reactos/libs/pseh/pseh2.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sdk/include/reactos/libs/pseh/pseh2.h b/sdk/include/reactos/libs/pseh/pseh2.h index 1bbce6949ad..6022638313b 100644 --- a/sdk/include/reactos/libs/pseh/pseh2.h +++ b/sdk/include/reactos/libs/pseh/pseh2.h @@ -44,9 +44,9 @@ extern int _SEH2_VolatileExceptionCode; #define _SEH2_TRY { #define _SEH2_FINALLY } { -#define _SEH2_EXCEPT(...) } if (_SEH2_Volatile0) { +#define _SEH2_EXCEPT(...) } if (_SEH2_Volatile0 || (0 && (__VA_ARGS__))) { #define _SEH2_END } -#define _SEH2_GetExceptionInformation() +#define _SEH2_GetExceptionInformation() 0 #define _SEH2_GetExceptionCode() _SEH2_VolatileExceptionCode #define _SEH2_AbnormalTermination() (0) #define _SEH2_YIELD(STMT_) STMT_