From b2ca193aa4031981be9d50c79bc641e299fc5f11 Mon Sep 17 00:00:00 2001 From: neru Date: Sat, 11 Apr 2026 13:41:33 -0300 Subject: [PATCH] fix: pass 0 instead of NULL --- src/unlocker/ssl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/unlocker/ssl.cpp b/src/unlocker/ssl.cpp index 3e9b4e1..5be3634 100644 --- a/src/unlocker/ssl.cpp +++ b/src/unlocker/ssl.cpp @@ -102,7 +102,7 @@ void CertManager::installCert(X509* cert) PCCERT_CONTEXT certCtx = CertCreateCertificateContext(X509_ASN_ENCODING | PKCS_7_ASN_ENCODING, derBuf, derLen); if (certCtx) { - HCERTSTORE rootStore = CertOpenStore(CERT_STORE_PROV_SYSTEM, 0, NULL, CERT_SYSTEM_STORE_CURRENT_USER, L"Root"); + HCERTSTORE rootStore = CertOpenStore(CERT_STORE_PROV_SYSTEM, 0, 0, CERT_SYSTEM_STORE_CURRENT_USER, L"Root"); if (rootStore) { BOOL success = CertAddCertificateContextToStore(rootStore, certCtx, CERT_STORE_ADD_REPLACE_EXISTING, NULL);