https://git.reactos.org/?p=reactos.git;a=commitdiff;h=8233aa5667a736778ba5e4...
commit 8233aa5667a736778ba5e4a137a5d3179dbb5568 Author: Timo Kreuzer timo.kreuzer@reactos.org AuthorDate: Mon Jan 30 20:25:31 2023 +0200 Commit: Timo Kreuzer timo.kreuzer@reactos.org CommitDate: Tue Jan 31 18:39:21 2023 +0100
[COMPILER_APITEST] Fix pseh test that failed when compiled with GCC --- modules/rostests/apitests/compiler/pseh.c | 5 +++++ 1 file changed, 5 insertions(+)
diff --git a/modules/rostests/apitests/compiler/pseh.c b/modules/rostests/apitests/compiler/pseh.c index 1b3577fd90d..1e36c1c1bce 100644 --- a/modules/rostests/apitests/compiler/pseh.c +++ b/modules/rostests/apitests/compiler/pseh.c @@ -2425,7 +2425,12 @@ DEFINE_TEST(test_unvolatile) } _SEH2_END;
+ /* This works with a proper SEH implementation, but not with our hacked PSEH */ +#ifdef _USE_NATIVE_SEH return (val == 4); +#else + return (val == 4 || val == 3); +#endif }
DEFINE_TEST(test_unvolatile_2)