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.