https://git.reactos.org/?p=reactos.git;a=commitdiff;h=6133cc016df7eee387c57dd47607c575cd9083a7
commit 6133cc016df7eee387c57dd47607c575cd9083a7 Author: Timo Kreuzer <timo.kreu...@reactos.org> AuthorDate: Sat Mar 14 23:28:47 2020 +0100 Commit: Timo Kreuzer <timo.kreu...@reactos.org> CommitDate: Tue Sep 26 18:02:21 2023 +0300 [CRT/x64] Fix a bug in __C_specific_handler Fixes crash of compiler_apitest pseh --- sdk/lib/crt/except/amd64/ehandler.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sdk/lib/crt/except/amd64/ehandler.c b/sdk/lib/crt/except/amd64/ehandler.c index b32b821d6c9..9a1e1e759be 100644 --- a/sdk/lib/crt/except/amd64/ehandler.c +++ b/sdk/lib/crt/except/amd64/ehandler.c @@ -107,12 +107,12 @@ __C_specific_handler( FilterResult = ExceptionFilter(&ExceptionPointers, EstablisherFrame); } - if (FilterResult == EXCEPTION_CONTINUE_EXECUTION) + if (FilterResult < 0 /* EXCEPTION_CONTINUE_EXECUTION */) { return ExceptionContinueExecution; } - if (FilterResult == EXCEPTION_EXECUTE_HANDLER) + if (FilterResult > 0 /* EXCEPTION_EXECUTE_HANDLER */) { JumpTarget = (ImageBase + ScopeTable->ScopeRecord[i].JumpTarget);