dahall / Vanara

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

SafeHANDLE != operator should make parameters nullable #459

Closed GF-Huang closed 7 months ago

GF-Huang commented 7 months ago

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

image

Expected behavior No warning(CS8604).

dahall commented 7 months ago

Fixed in 4.0.1

GF-Huang commented 6 months ago

The h1 seems also need to nullable. 😄

image

dahall commented 6 months ago

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