From 454dd02d91455ef9ef059d89295115747332e32a Mon Sep 17 00:00:00 2001 From: Geoff Norton Date: Sat, 28 Feb 2015 21:44:40 -0800 Subject: [PATCH] Exception handling needs a full context here to restore properly --- src/vm/exceptionhandling.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/vm/exceptionhandling.cpp b/src/vm/exceptionhandling.cpp index 5feb07c..da1bd9a 100644 --- a/src/vm/exceptionhandling.cpp +++ b/src/vm/exceptionhandling.cpp @@ -4378,7 +4378,7 @@ VOID DECLSPEC_NORETURN DispatchManagedException(PAL_SEHException& ex) ULONG64 stackLowAddress = (ULONG64)PAL_GetStackLimit(); // TODO: is there a better way to get the first managed frame? - originalExceptionContext.ContextFlags = CONTEXT_CONTROL | CONTEXT_INTEGER; + originalExceptionContext.ContextFlags = CONTEXT_FULL; GetThread()->GetThreadContext(&originalExceptionContext); controlPc = Thread::VirtualUnwindToFirstManagedCallFrame(&originalExceptionContext); -- 2.7.4