https://git.reactos.org/?p=reactos.git;a=commitdiff;h=8d3bc7c5720ded130ea77…
commit 8d3bc7c5720ded130ea77a1f2947bf672bdcaf46
Author: Timo Kreuzer <timo.kreuzer(a)reactos.org>
AuthorDate: Sun Aug 21 17:23:51 2022 +0200
Commit: Timo Kreuzer <timo.kreuzer(a)reactos.org>
CommitDate: Thu Nov 24 21:17:58 2022 +0200
[RTL] Set unwind flags in RtlUnwindEx
---
sdk/lib/rtl/amd64/unwind.c | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/sdk/lib/rtl/amd64/unwind.c b/sdk/lib/rtl/amd64/unwind.c
index 6618d9fba12..f4c811defee 100644
--- a/sdk/lib/rtl/amd64/unwind.c
+++ b/sdk/lib/rtl/amd64/unwind.c
@@ -891,6 +891,13 @@ RtlUnwindEx(
ExceptionRecord = &LocalExceptionRecord;
}
+ /* Set unwind flags */
+ ExceptionRecord->ExceptionFlags = EXCEPTION_UNWINDING;
+ if (TargetFrame == NULL)
+ {
+ ExceptionRecord->ExceptionFlags |= EXCEPTION_EXIT_UNWIND;
+ }
+
/* Call the internal function */
RtlpUnwindInternal(TargetFrame,
TargetIp,