You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
WlanOpenHandle function uses the Microsoft.Win32.SafeHandles.SafeFileHandle handle, but this is incorrect. It needs to be closed using WlanCloseHandle.
Expected behavior
A clear and concise description of what you expected to happen.
Repro steps
NativeMethods.txt content:
WlanOpenHandle
Context
CsWin32 version: 0.3.18-beta+dc807e7787
Target Framework: net 6.0
LangVersion (if explicitly set by project): latest
The text was updated successfully, but these errors were encountered:
That's the problem. In the metadata, using HANDLE means it is released by CloseHandle. In this case we need non-default behavior specified in the metadata.
Actual behavior
WlanOpenHandle function uses the Microsoft.Win32.SafeHandles.SafeFileHandle handle, but this is incorrect. It needs to be closed using WlanCloseHandle.
Expected behavior
A clear and concise description of what you expected to happen.
Repro steps
NativeMethods.txt
content:Context
CsWin32 version: 0.3.18-beta+dc807e7787
Target Framework: net 6.0
LangVersion (if explicitly set by project): latest
The text was updated successfully, but these errors were encountered: