Juan Lang : crypt32: Fix CertAddCRLContextToStore for CERT_STORE_ADD_USE_EXISTING add disposition .

Alexandre Julliard julliard at winehq.org
Fri Dec 11 11:04:44 CST 2009


Module: wine
Branch: master
Commit: c7609f3c55ba93dcef98a509eefee9b810cd849f
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=c7609f3c55ba93dcef98a509eefee9b810cd849f

Author: Juan Lang <juan.lang at gmail.com>
Date:   Thu Dec 10 09:06:10 2009 -0800

crypt32: Fix CertAddCRLContextToStore for CERT_STORE_ADD_USE_EXISTING add disposition.

---

 dlls/crypt32/store.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/dlls/crypt32/store.c b/dlls/crypt32/store.c
index 9d670f9..153d3aa 100644
--- a/dlls/crypt32/store.c
+++ b/dlls/crypt32/store.c
@@ -1091,7 +1091,13 @@ BOOL WINAPI CertAddCRLContextToStore(HCERTSTORE hCertStore,
         break;
     case CERT_STORE_ADD_USE_EXISTING:
         if (existing)
+        {
             CrlContext_CopyProperties(existing, pCrlContext);
+            if (ppStoreContext)
+                *ppStoreContext = CertDuplicateCRLContext(existing);
+        }
+        else
+            toAdd = CertDuplicateCRLContext(pCrlContext);
         break;
     default:
         FIXME("Unimplemented add disposition %d\n", dwAddDisposition);




More information about the wine-cvs mailing list