We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Seems like LocalFree has a swapped error/success condition.
Docs say "If the function succeeds, the return value is NULL."
Code for LocalFree has:
#[inline] pub unsafe fn LocalFree<P0>(hmem: P0) -> ::windows_core::Result<HLOCAL> where P0: ::windows_core::IntoParam<HLOCAL>, { ::windows_targets::link!("kernel32.dll" "system" fn LocalFree(hmem : HLOCAL) -> HLOCAL); let result__ = LocalFree(hmem.into_param().abi()); (!result__.is_invalid()).then(|| result__).ok_or_else(::windows_core::Error::from_win32) }
And is_invalid for HLOCAL checks for is_null.
No response
The text was updated successfully, but these errors were encountered:
See microsoft/win32metadata#1557
Sorry, something went wrong.
No branches or pull requests
Summary
Seems like LocalFree has a swapped error/success condition.
Docs say "If the function succeeds, the return value is NULL."
Code for LocalFree has:
And is_invalid for HLOCAL checks for is_null.
Crate manifest
No response
Crate code
No response
The text was updated successfully, but these errors were encountered: