Skip to content

Conversation

@DoctorKrolic
Copy link
Contributor

Fixes: #1078

We already handle out handle parameters annotated with [RAIIFree]. However, in this particular case WlanCloseHandle function accepts 2 parameters, which usually blocks us from turning raw handle into a SafeHandle. But the second parameter of WlanCloseHandle is a [Reserved] one, so we don't actually need to pass a value to it. So the fix is to recognize such cases and handle still allow SafeHandle to be used

@DoctorKrolic
Copy link
Contributor Author

@jevansaks PTAL

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support [RAIIFree] on output parameters

1 participant