File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -12676,11 +12676,7 @@ Reaction CordbProcess::TriageExcep1stChanceAndInit(CordbUnmanagedThread * pUnman
12676
12676
12677
12677
DT_CONTEXT context;
12678
12678
12679
- #ifdef TARGET_X86
12680
- tempContext.ContextFlags = DT_CONTEXT_FULL | DT_CONTEXT_EXTENDED_REGISTERS;
12681
- #else
12682
- tempContext.ContextFlags = DT_CONTEXT_FULL;
12683
- #endif
12679
+ context.ContextFlags = DT_CONTEXT_FULL;
12684
12680
12685
12681
BOOL fSuccess = DbiGetThreadContext(pUnmanagedThread->m_handle, &context);
12686
12682
@@ -13381,7 +13377,11 @@ void CordbProcess::HandleDebugEventForInteropDebugging(const DEBUG_EVENT * pEven
13381
13377
{
13382
13378
LOG((LF_CORDB, LL_INFO100000, "W32ET::W32EL: hijack complete will restore context...\n"));
13383
13379
DT_CONTEXT tempContext = { 0 };
13380
+ #ifdef TARGET_X86
13381
+ tempContext.ContextFlags = DT_CONTEXT_FULL | DT_CONTEXT_EXTENDED_REGISTERS;
13382
+ #else
13384
13383
tempContext.ContextFlags = DT_CONTEXT_FULL;
13384
+ #endif
13385
13385
HRESULT hr = pUnmanagedThread->GetThreadContext(&tempContext);
13386
13386
_ASSERTE(SUCCEEDED(hr));
13387
13387
You can’t perform that action at this time.
0 commit comments