-
Notifications
You must be signed in to change notification settings - Fork 113
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
GlobalUnlock return value seems weird #1770
Comments
There are cases where the function can fail, in which case |
The problem is that
will abort calling function with an error, which is in fact a success. |
The API should probably get the |
Starting to think the default for the return value transformation is all wrong. The transformation should be opt-in rather than opt-out for Win32. |
Anyway, I'll transfer to the Win32 metadata repo for their consideration. Rust only considers the |
Summary
It is translated to a result, but in both case GetLastError returns NO_ERROR so it seems a bit weird.
https://learn.microsoft.com/en-us/windows/win32/api/winbase/nf-winbase-globalunlock
Crate manifest
No response
Crate code
No response
The text was updated successfully, but these errors were encountered: