crypt32: Fix CertAddCRLContextToStore for CERT_STORE_ADD_USE_EXISTING add disposition.
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 @@
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);