Skip to content

Commit 6efd413

Browse files
committed
Fix warnings from unsupported_calling_conventions
Rust lint, see rust-lang/rust#137018
1 parent 5a80f92 commit 6efd413

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/platform/windows_safe.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -482,7 +482,7 @@ pub fn KERNEL32_IsWow64Process(process: HANDLE) -> Result<bool, WinOSError> {
482482
)));
483483
}
484484

485-
let func: extern "stdcall" fn(HANDLE, *mut BOOL) -> BOOL =
485+
let func: extern "system" fn(HANDLE, *mut BOOL) -> BOOL =
486486
unsafe { mem::transmute(func as *const ()) };
487487

488488
let mut is_wow64: BOOL = FALSE;
@@ -516,7 +516,7 @@ pub fn NTDLL_RtlGetVersion() -> Result<OSVERSIONINFOEXW, WinOSError> {
516516
symbol_name, module_file
517517
)));
518518
}
519-
let func: extern "stdcall" fn(*mut RTL_OSVERSIONINFOEXW) -> NTSTATUS =
519+
let func: extern "system" fn(*mut RTL_OSVERSIONINFOEXW) -> NTSTATUS =
520520
unsafe { mem::transmute(func as *const ()) };
521521

522522
let mut os_version_info = match create_OSVERSIONINFOEXW() {

0 commit comments

Comments
 (0)