From 7c6a03c335699be45df07e66b4f4fbb409b2e412 Mon Sep 17 00:00:00 2001 From: Andrew Au Date: Wed, 11 Jul 2018 13:41:07 -0700 Subject: [PATCH] Return better HR for failing to get managed thread context Commit migrated from https://github.com/dotnet/coreclr/commit/b8e2abe84f9c4d67ff4aa1e53b3ed775c2750c42 --- src/coreclr/src/debug/di/process.cpp | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/coreclr/src/debug/di/process.cpp b/src/coreclr/src/debug/di/process.cpp index e668fe6..0b6c582 100644 --- a/src/coreclr/src/debug/di/process.cpp +++ b/src/coreclr/src/debug/di/process.cpp @@ -6510,12 +6510,7 @@ HRESULT CordbProcess::GetThreadContext(DWORD threadID, ULONG32 contextSize, BYTE *pContext = *managedContext; } } - EX_CATCH - { - hr = E_FAIL; - } - EX_END_CATCH(SwallowAllExceptions) - + EX_CATCH_HRESULT(hr) return hr; } } -- 2.7.4