From b92976fad495d03790b7db4c6ad58648eea8ade1 Mon Sep 17 00:00:00 2001 From: dahall Date: Thu, 4 Mar 2021 11:41:40 -0700 Subject: [PATCH] Fixed bug in last commit --- PInvoke/Shared/Handles.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PInvoke/Shared/Handles.cs b/PInvoke/Shared/Handles.cs index 396baf8d..1543a6be 100644 --- a/PInvoke/Shared/Handles.cs +++ b/PInvoke/Shared/Handles.cs @@ -2222,7 +2222,7 @@ namespace Vanara.PInvoke /// The first handle. /// The second handle. /// The result of the operator. - public static bool operator ==(SafeHANDLE h1, IntPtr h2) => h1?.Equals(h2) ?? h2 is null; + public static bool operator ==(SafeHANDLE h1, IntPtr h2) => h1?.Equals(h2) ?? false; /// Determines whether the specified , is equal to this instance. /// The to compare with this instance.