Return better HR for failing to get managed thread context
authorAndrew Au <andrewau@microsoft.com>
Wed, 11 Jul 2018 20:41:07 +0000 (13:41 -0700)
committerAndrew Au <cshung@gmail.com>
Wed, 7 Nov 2018 02:34:47 +0000 (18:34 -0800)
Commit migrated from https://github.com/dotnet/coreclr/commit/b8e2abe84f9c4d67ff4aa1e53b3ed775c2750c42

src/coreclr/src/debug/di/process.cpp

index e668fe6..0b6c582 100644 (file)
@@ -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;
     }
 }