From 6efd413f1651133b09443e311cf87085f4763588 Mon Sep 17 00:00:00 2001 From: Daniel Hofstetter Date: Fri, 8 Aug 2025 09:32:04 +0200 Subject: [PATCH] Fix warnings from unsupported_calling_conventions Rust lint, see https://github.com/rust-lang/rust/issues/137018 --- src/platform/windows_safe.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/platform/windows_safe.rs b/src/platform/windows_safe.rs index 29b9671..4fc1319 100644 --- a/src/platform/windows_safe.rs +++ b/src/platform/windows_safe.rs @@ -482,7 +482,7 @@ pub fn KERNEL32_IsWow64Process(process: HANDLE) -> Result { ))); } - 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 { 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() {