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
windows-sys
0.45.0
The SetThreadErrorMode function has this prototype: https://docs.rs/windows-sys/0.45.0/windows_sys/Win32/System/Diagnostics/Debug/fn.SetThreadErrorMode.html
pub unsafe extern "system" fn SetThreadErrorMode( dwnewmode: THREAD_ERROR_MODE, lpoldmode: *const THREAD_ERROR_MODE ) -> BOOL
But as seen in the official doc: https://learn.microsoft.com/en-us/windows/win32/api/errhandlingapi/nf-errhandlingapi-setthreaderrormode the "lpoldmode" is an out parameter, and thus should be a *mut THREAD_ERROR_MODE.
*mut THREAD_ERROR_MODE
The text was updated successfully, but these errors were encountered:
Yep, metadata bug, sorry about that. Transferring over there.
Sorry, something went wrong.
This function is declared as follows:
WINBASEAPI BOOL WINAPI SetThreadErrorMode( _In_ DWORD dwNewMode, _In_opt_ LPDWORD lpOldMode );
The SAL annotation is wrong - it should be: _Out_opt_
_Out_opt_
0c2c386
mikebattista
No branches or pull requests
Which crate is this about?
windows-sys
Crate version
0.45.0
Summary
The SetThreadErrorMode function has this prototype: https://docs.rs/windows-sys/0.45.0/windows_sys/Win32/System/Diagnostics/Debug/fn.SetThreadErrorMode.html
But as seen in the official doc: https://learn.microsoft.com/en-us/windows/win32/api/errhandlingapi/nf-errhandlingapi-setthreaderrormode the "lpoldmode" is an out parameter, and thus should be a
*mut THREAD_ERROR_MODE
.The text was updated successfully, but these errors were encountered: