From 4780ee6edb175f2a8ef1ff49a8962ddc5eb03c2c Mon Sep 17 00:00:00 2001 From: Koundinya Veluri Date: Fri, 16 Jul 2021 19:00:27 -0700 Subject: [PATCH] [Preview 7] Fix debugger thread context validation after recent change - Port of https://github.com/dotnet/runtime/pull/55839 to preview 7 - Followup fix to https://github.com/dotnet/runtime/pull/55185 --- src/coreclr/debug/ee/debugger.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/coreclr/debug/ee/debugger.cpp b/src/coreclr/debug/ee/debugger.cpp index 9f7e286059475..81965f1dee436 100644 --- a/src/coreclr/debug/ee/debugger.cpp +++ b/src/coreclr/debug/ee/debugger.cpp @@ -15911,7 +15911,7 @@ BOOL Debugger::IsThreadContextInvalid(Thread *pThread, CONTEXT *pCtx) if (!success) { ctx.ContextFlags = CONTEXT_CONTROL; - BOOL success = pThread->GetThreadContext(&ctx); + success = pThread->GetThreadContext(&ctx); if (success) { pCtx = &ctx;