Juan Lang : crypt32: Support hExclusiveRoot when creating a certificate chain engine.
Alexandre Julliard
julliard at winehq.org
Thu May 20 11:03:00 CDT 2010
Module: wine
Branch: master
Commit: d298e1e614f1d3f48a1a21b9fca21ea217029c99
URL: http://source.winehq.org/git/wine.git/?a=commit;h=d298e1e614f1d3f48a1a21b9fca21ea217029c99
Author: Juan Lang <juan.lang at gmail.com>
Date: Wed May 19 16:46:11 2010 -0700
crypt32: Support hExclusiveRoot when creating a certificate chain engine.
---
dlls/crypt32/chain.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/dlls/crypt32/chain.c b/dlls/crypt32/chain.c
index ec7f602..d324314 100644
--- a/dlls/crypt32/chain.c
+++ b/dlls/crypt32/chain.c
@@ -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);
More information about the wine-cvs
mailing list