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() {