Fix warnings from unsupported_calling_conventions

Rust lint, see https://github.com/rust-lang/rust/issues/137018
This commit is contained in:
Daniel Hofstetter
2025-08-08 09:32:04 +02:00
parent 5a80f92c7b
commit 6efd413f16
+2 -2
View File
@@ -482,7 +482,7 @@ pub fn KERNEL32_IsWow64Process(process: HANDLE) -> Result<bool, WinOSError> {
)));
}
let func: extern "stdcall" fn(HANDLE, *mut BOOL) -> BOOL =
let func: extern "system" fn(HANDLE, *mut BOOL) -> BOOL =
unsafe { mem::transmute(func as *const ()) };
let mut is_wow64: BOOL = FALSE;
@@ -516,7 +516,7 @@ pub fn NTDLL_RtlGetVersion() -> Result<OSVERSIONINFOEXW, WinOSError> {
symbol_name, module_file
)));
}
let func: extern "stdcall" fn(*mut RTL_OSVERSIONINFOEXW) -> NTSTATUS =
let func: extern "system" fn(*mut RTL_OSVERSIONINFOEXW) -> NTSTATUS =
unsafe { mem::transmute(func as *const ()) };
let mut os_version_info = match create_OSVERSIONINFOEXW() {