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;
|
HCERTSTORE root;
|
||||||
HCERTCHAINENGINE engine;
|
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);
|
root = CertDuplicateStore(pConfig->hRestrictedRoot);
|
||||||
else
|
else
|
||||||
root = CertOpenSystemStoreW(0, rootW);
|
root = CertOpenSystemStoreW(0, rootW);
|
||||||
|
|
Loading…
Reference in New Issue