From 98ff9c129b39db9bd1a89ec80300e03b5ae74c97 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 --- .../shared/System/Runtime/InteropServices/CriticalHandle.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/System.Private.CoreLib/shared/System/Runtime/InteropServices/CriticalHandle.cs b/src/System.Private.CoreLib/shared/System/Runtime/InteropServices/CriticalHandle.cs index 83160dddea4..fc6a27d18ca 100644 --- a/src/System.Private.CoreLib/shared/System/Runtime/InteropServices/CriticalHandle.cs +++ b/src/System.Private.CoreLib/shared/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);