Skip to content

Commit a3133a0

Browse files
thaystggithub-actions
authored andcommitted
Fixing the copy and paste.
1 parent cff6978 commit a3133a0

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/coreclr/debug/di/process.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12676,11 +12676,7 @@ Reaction CordbProcess::TriageExcep1stChanceAndInit(CordbUnmanagedThread * pUnman
1267612676

1267712677
DT_CONTEXT context;
1267812678

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;
1268412680

1268512681
BOOL fSuccess = DbiGetThreadContext(pUnmanagedThread->m_handle, &context);
1268612682

@@ -13381,7 +13377,11 @@ void CordbProcess::HandleDebugEventForInteropDebugging(const DEBUG_EVENT * pEven
1338113377
{
1338213378
LOG((LF_CORDB, LL_INFO100000, "W32ET::W32EL: hijack complete will restore context...\n"));
1338313379
DT_CONTEXT tempContext = { 0 };
13380+
#ifdef TARGET_X86
13381+
tempContext.ContextFlags = DT_CONTEXT_FULL | DT_CONTEXT_EXTENDED_REGISTERS;
13382+
#else
1338413383
tempContext.ContextFlags = DT_CONTEXT_FULL;
13384+
#endif
1338513385
HRESULT hr = pUnmanagedThread->GetThreadContext(&tempContext);
1338613386
_ASSERTE(SUCCEEDED(hr));
1338713387

0 commit comments

Comments
 (0)