From c4bb6283f15dc000a41c6a574b4402a564ead9bb Mon Sep 17 00:00:00 2001 From: Isaiah Inuwa Date: Fri, 20 Feb 2026 08:18:27 -0600 Subject: [PATCH] Fix missing #[repr(C)] annotations --- apps/desktop/desktop_native/win_webauthn/src/plugin/types.rs | 1 + apps/desktop/desktop_native/win_webauthn/src/types/mod.rs | 1 + 2 files changed, 2 insertions(+) diff --git a/apps/desktop/desktop_native/win_webauthn/src/plugin/types.rs b/apps/desktop/desktop_native/win_webauthn/src/plugin/types.rs index 0dd5661ee0a..2d954271b93 100644 --- a/apps/desktop/desktop_native/win_webauthn/src/plugin/types.rs +++ b/apps/desktop/desktop_native/win_webauthn/src/plugin/types.rs @@ -1166,6 +1166,7 @@ fn webauthn_free_decoded_get_assertion_request( ) -> ()); // CancelOperation Types +#[repr(C)] pub(super) struct WEBAUTHN_PLUGIN_CANCEL_OPERATION_REQUEST { transactionId: GUID, cbRequestSignature: u32, diff --git a/apps/desktop/desktop_native/win_webauthn/src/types/mod.rs b/apps/desktop/desktop_native/win_webauthn/src/types/mod.rs index 3029bddfa37..8c5bdeab366 100644 --- a/apps/desktop/desktop_native/win_webauthn/src/types/mod.rs +++ b/apps/desktop/desktop_native/win_webauthn/src/types/mod.rs @@ -465,6 +465,7 @@ pub(crate) struct WEBAUTHN_CREDENTIAL_ATTESTATION { pub(crate) pbRegistrationResponseJSON: *const u8, } +#[repr(C)] pub(crate) struct WEBAUTHN_HMAC_SECRET_SALT { /// Size of pbFirst. _cbFirst: u32,