mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-06 02:48:20 +00:00
crypt32: Support hExclusiveRoot when creating a certificate chain engine.
This commit is contained in:
parent
d3db308853
commit
d298e1e614
|
@ -186,7 +186,10 @@ BOOL WINAPI CertCreateCertificateChainEngine(PCERT_CHAIN_ENGINE_CONFIG pConfig,
|
|||
HCERTSTORE root;
|
||||
HCERTCHAINENGINE engine;
|
||||
|
||||
if (pConfig->hRestrictedRoot)
|
||||
if (pConfig->cbSize >= sizeof(CERT_CHAIN_ENGINE_CONFIG) &&
|
||||
pConfig->hExclusiveRoot)
|
||||
root = CertDuplicateStore(pConfig->hExclusiveRoot);
|
||||
else if (pConfig->hRestrictedRoot)
|
||||
root = CertDuplicateStore(pConfig->hRestrictedRoot);
|
||||
else
|
||||
root = CertOpenSystemStoreW(0, rootW);
|
||||
|
|
Loading…
Reference in a new issue