From 4b78d123a525a4755ed2f62192dc1319622f21fb Mon Sep 17 00:00:00 2001 From: inportb Date: Tue, 4 Nov 2025 16:48:50 -0500 Subject: [PATCH] Fix: mismatched types --- src/common.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common.rs b/src/common.rs index 536cb7c..47969f0 100644 --- a/src/common.rs +++ b/src/common.rs @@ -113,7 +113,7 @@ pub fn get_vista_certificate(show_cert_dialog: bool) -> Result<*const Cryptograp } //Cryptography::CertCloseStore(store_system.0, 0); if show_cert_dialog { - cert_selection = Cryptography::UI::CryptUIDlgSelectCertificateFromStore(store_memory.0, 0, windows_sys::w!("VistA Logon - Certificate Selection"), windows_sys::w!("Select a certificate for VistA authentication"), 0, 0, void_p_null); + cert_selection = Cryptography::UI::CryptUIDlgSelectCertificateFromStore(store_memory.0, void_p_null, windows_sys::w!("VistA Logon - Certificate Selection"), windows_sys::w!("Select a certificate for VistA authentication"), 0, 0, void_p_null); } //Cryptography::CertCloseStore(store_memory.0, 0); if cert_selection != void_p_null as *const Cryptography::CERT_CONTEXT { Ok(cert_selection) } else { Err(StringSystemError::SystemError(SystemError { code: windows_sys::Win32::Foundation::ERROR_REQUEST_REFUSED })) }