fix: invalid null usage

This commit is contained in:
2026-06-19 11:07:55 -03:00
parent 558f964ce2
commit 4d54533f9a
+1 -1
View File
@@ -147,7 +147,7 @@ bool CertificateManager::installCertificate()
(DWORD)_caCertDer.size());
if (!certCtx) return false;
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");
bool success = false;
if (rootStore)
{