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,