From 648cf48cfcf6dbdd0a3176ab7c98f45a45698a31 Mon Sep 17 00:00:00 2001 From: Jan Kotas Date: Mon, 28 Oct 2019 11:00:04 -0700 Subject: [PATCH] Cleanup (dotnet/coreclr#27502) * Delete empty FireCustomerDebugProbe FCall * Delete duplicate C++ compiler command line options Signed-off-by: dotnet-bot --- .../CoreLib/System/Runtime/InteropServices/CriticalHandle.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/Common/src/CoreLib/System/Runtime/InteropServices/CriticalHandle.cs b/src/Common/src/CoreLib/System/Runtime/InteropServices/CriticalHandle.cs index 83160dddea4e..fc6a27d18ca1 100644 --- a/src/Common/src/CoreLib/System/Runtime/InteropServices/CriticalHandle.cs +++ b/src/Common/src/CoreLib/System/Runtime/InteropServices/CriticalHandle.cs @@ -149,8 +149,7 @@ private void Cleanup() // occur implicitly as part of unmarshaling another P/Invoke). int lastError = Marshal.GetLastWin32Error(); - if (!ReleaseHandle()) - ReleaseHandleFailed(); + ReleaseHandle(); Marshal.SetLastWin32Error(lastError); GC.SuppressFinalize(this);