dahall / Vanara

A set of .NET libraries for Windows implementing PInvoke calls to many native Windows APIs with supporting wrappers.
MIT License
1.75k stars 190 forks source link

SafeHANDLE != operator should make parameters nullable #459

Closed GF-Huang closed 2 months ago

GF-Huang commented 2 months ago

Describe the bug and how to reproduce It's not a bug.

image

Expected behavior No warning(CS8604).

dahall commented 2 months ago

Fixed in 4.0.1

GF-Huang commented 2 months ago

The h1 seems also need to nullable. 😄

image

dahall commented 2 months ago

Corrected this and the == operator so null SafeHANDLEs are covered in 4.0.2