diff --git a/apps/desktop/desktop_native/win_webauthn/src/util.rs b/apps/desktop/desktop_native/win_webauthn/src/util.rs index a02b30626d4..f8b1fa9fb2d 100644 --- a/apps/desktop/desktop_native/win_webauthn/src/util.rs +++ b/apps/desktop/desktop_native/win_webauthn/src/util.rs @@ -23,7 +23,7 @@ macro_rules! webauthn_call { ), )?; - let function: unsafe extern "cdecl" fn( + let function: unsafe extern "C" fn( $($arg: $arg_type),* ) -> $result_type = std::mem::transmute_copy(&address); function($($arg),*)