diff options
author | Jason Stephenson <jstephenson@mimecast.com> | 2020-03-25 15:12:20 +0000 |
---|---|---|
committer | Sean Hall <r.sean.hall@gmail.com> | 2020-04-02 13:27:47 +1000 |
commit | 6ef267bc108ea6dcfc958da281b51baf30a93078 (patch) | |
tree | d5824b2205cfb0b4b07b7e32ed14a6225e495ab4 | |
parent | c435344731cfbfa4882d3afa9e82d4f86b49effe (diff) | |
download | wix-6ef267bc108ea6dcfc958da281b51baf30a93078.tar.gz wix-6ef267bc108ea6dcfc958da281b51baf30a93078.tar.bz2 wix-6ef267bc108ea6dcfc958da281b51baf30a93078.zip |
Issue-4875: Explicitly request RW permissions or the Group Policy and Enterprise physical stores will fail with ACCESS_DENIED
-rw-r--r-- | src/ca/scacertexec.cpp | 2 |
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 |