crypt32: Fix CertAddCRLContextToStore for CERT_STORE_ADD_USE_EXISTING add disposition.
authorJuan Lang <juan.lang@gmail.com>
Thu, 10 Dec 2009 17:06:10 +0000 (09:06 -0800)
committerAlexander Morozov <amorozov@etersoft.ru>
Thu, 1 Jul 2010 13:18:18 +0000 (17:18 +0400)
dlls/crypt32/store.c

index 9d670f9ea8c9d50e857e3445e63dcf242bd02bde..153d3aa71ea4f047d29f30e60a12d2bc62da6a5e 100644 (file)
@@ -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);