From 075a9521f6639f3f6b8fc6b2751ba0359871891d Mon Sep 17 00:00:00 2001 From: Isaiah Inuwa Date: Fri, 20 Feb 2026 08:18:27 -0600 Subject: [PATCH] Use correct BOOL type instead of bool. --- .../desktop_native/win_webauthn/src/plugin/types.rs | 10 +++++----- .../desktop_native/win_webauthn/src/types/mod.rs | 12 ++++++------ 2 files changed, 11 insertions(+), 11 deletions(-) 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 dd47b3f6b37..0dd5661ee0a 100644 --- a/apps/desktop/desktop_native/win_webauthn/src/plugin/types.rs +++ b/apps/desktop/desktop_native/win_webauthn/src/plugin/types.rs @@ -849,14 +849,14 @@ impl PluginMakeCredentialResponse { pbCredentialId, Extensions: extensions, dwUsedTransport, - bEpAtt: self.ep_att, - bLargeBlobSupported: self.large_blob_supported, - bResidentKey: self.resident_key, - bPrfEnabled: self.prf_enabled, + bEpAtt: self.ep_att.into(), + bLargeBlobSupported: self.large_blob_supported.into(), + bResidentKey: self.resident_key.into(), + bPrfEnabled: self.prf_enabled.into(), cbUnsignedExtensionOutputs, pbUnsignedExtensionOutputs, pHmacSecret, - bThirdPartyPayment: self.third_party_payment, + bThirdPartyPayment: self.third_party_payment.into(), dwTransports, cbClientDataJSON, pbClientDataJSON, 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 955d4776a6d..3029bddfa37 100644 --- a/apps/desktop/desktop_native/win_webauthn/src/types/mod.rs +++ b/apps/desktop/desktop_native/win_webauthn/src/types/mod.rs @@ -6,7 +6,7 @@ use std::{collections::HashSet, marker::PhantomData, num::NonZeroU32, ptr::NonNull}; use ciborium::Value; -use windows_core::PCWSTR; +use windows::core::{BOOL, PCWSTR}; use crate::{util::ArrayPointerIterator, ErrorKind, WinWebAuthnError}; @@ -425,13 +425,13 @@ pub(crate) struct WEBAUTHN_CREDENTIAL_ATTESTATION { // // Following fields have been added in WEBAUTHN_CREDENTIAL_ATTESTATION_VERSION_4 - pub(crate) bEpAtt: bool, - pub(crate) bLargeBlobSupported: bool, - pub(crate) bResidentKey: bool, + pub(crate) bEpAtt: BOOL, + pub(crate) bLargeBlobSupported: BOOL, + pub(crate) bResidentKey: BOOL, // // Following fields have been added in WEBAUTHN_CREDENTIAL_ATTESTATION_VERSION_5 - pub(crate) bPrfEnabled: bool, + pub(crate) bPrfEnabled: BOOL, // // Following fields have been added in WEBAUTHN_CREDENTIAL_ATTESTATION_VERSION_6 @@ -444,7 +444,7 @@ pub(crate) struct WEBAUTHN_CREDENTIAL_ATTESTATION { pub(crate) pHmacSecret: *const WEBAUTHN_HMAC_SECRET_SALT, // ThirdPartyPayment Credential or not. - pub(crate) bThirdPartyPayment: bool, + pub(crate) bThirdPartyPayment: BOOL, // // Following fields have been added in WEBAUTHN_CREDENTIAL_ATTESTATION_VERSION_8