Fixed bug in last commit

pull/217/head
dahall 2021-03-04 11:41:40 -07:00
parent 50aa5a06e1
commit b92976fad4
1 changed files with 1 additions and 1 deletions

View File

@ -2222,7 +2222,7 @@ namespace Vanara.PInvoke
/// <param name="h1">The first handle.</param>
/// <param name="h2">The second handle.</param>
/// <returns>The result of the operator.</returns>
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;
/// <summary>Determines whether the specified <see cref="SafeHANDLE"/>, is equal to this instance.</summary>
/// <param name="other">The <see cref="SafeHANDLE"/> to compare with this instance.</param>