https://git.reactos.org/?p=reactos.git;a=commitdiff;h=7eac585ebf80a99362615…
commit 7eac585ebf80a993626158e48be5bfe338b22476
Author: Hervé Poussineau <hpoussin(a)reactos.org>
AuthorDate: Thu Mar 26 16:24:59 2020 +0100
Commit: Hervé Poussineau <hpoussin(a)reactos.org>
CommitDate: Thu Mar 26 16:39:16 2020 +0100
[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_