aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/ca/scacertexec.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ca/scacertexec.cpp b/src/ca/scacertexec.cpp
index 3864659f..ff87f485 100644
--- a/src/ca/scacertexec.cpp
+++ b/src/ca/scacertexec.cpp
@@ -175,7 +175,7 @@ static HRESULT ExecuteCertificateOperation(
175 } 175 }
176 176
177 // Open the right store. 177 // Open the right store.
178 hCertStore = ::CertOpenStore(CERT_STORE_PROV_SYSTEM, 0, NULL, dwStoreLocation, pwzStore); 178 hCertStore = ::CertOpenStore(CERT_STORE_PROV_SYSTEM, 0, NULL, dwStoreLocation | CERT_STORE_MAXIMUM_ALLOWED_FLAG, pwzStore);
179 MessageExitOnNullWithLastError(hCertStore, hr, msierrCERTFailedOpen, "Failed to open certificate store: %ls", pwzStore); 179 MessageExitOnNullWithLastError(hCertStore, hr, msierrCERTFailedOpen, "Failed to open certificate store: %ls", pwzStore);
180 180
181 if (SCA_ACTION_INSTALL == saAction) // install operations need more data 181 if (SCA_ACTION_INSTALL == saAction) // install operations need more data