diff --git a/src/pal/src/exception/seh-unwind.cpp b/src/pal/src/exception/seh-unwind.cpp index 763306b15df7..c8710de1da34 100644 --- a/src/pal/src/exception/seh-unwind.cpp +++ b/src/pal/src/exception/seh-unwind.cpp @@ -289,10 +289,16 @@ BOOL PAL_VirtualUnwind(CONTEXT *context, KNONVOLATILE_CONTEXT_POINTERS *contextP if (unw_is_signal_frame(&cursor) > 0) { context->ContextFlags |= CONTEXT_EXCEPTION_ACTIVE; +#if defined(_ARM_) || defined(_ARM64_) + context->ContextFlags &= ~CONTEXT_UNWOUND_TO_CALL; +#endif // _ARM_ || _ARM64_ } else { context->ContextFlags &= ~CONTEXT_EXCEPTION_ACTIVE; +#if defined(_ARM_) || defined(_ARM64_) + context->ContextFlags |= CONTEXT_UNWOUND_TO_CALL; +#endif // _ARM_ || _ARM64_ } // Update the passed in windows context to reflect the unwind