[RTL] Set unwind flags in RtlUnwindEx
authorTimo Kreuzer <timo.kreuzer@reactos.org>
Sun, 21 Aug 2022 15:23:51 +0000 (17:23 +0200)
committerTimo Kreuzer <timo.kreuzer@reactos.org>
Thu, 24 Nov 2022 19:17:58 +0000 (21:17 +0200)
sdk/lib/rtl/amd64/unwind.c

index 6618d9f..f4c811d 100644 (file)
@@ -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,