crypt32(6/13): Use public API to open memory stores

Juan Lang juan.lang at gmail.com
Wed Aug 15 18:47:50 CDT 2007


--Juan
-------------- next part --------------
From ab19f8c3442d045d1f779be6a4b4cc5083fdca7b Mon Sep 17 00:00:00 2001
From: Juan Lang <juan.lang at gmail.com>
Date: Wed, 15 Aug 2007 16:33:39 -0700
Subject: [PATCH] Use public API to open memory stores
---
 dlls/crypt32/store.c |    9 ++++++---
 1 files changed, 6 insertions(+), 3 deletions(-)

diff --git a/dlls/crypt32/store.c b/dlls/crypt32/store.c
index 8de31f4..ed34c65 100644
--- a/dlls/crypt32/store.c
+++ b/dlls/crypt32/store.c
@@ -1378,7 +1378,8 @@ static WINECRYPT_CERTSTORE *CRYPT_RegOpe
         {
             PWINECRYPT_CERTSTORE memStore;
 
-            memStore = CRYPT_MemOpenStore(hCryptProv, dwFlags, NULL);
+            memStore = CertOpenStore(CERT_STORE_PROV_MEMORY, 0, hCryptProv,
+             CERT_STORE_CREATE_NEW_FLAG, NULL);
             if (memStore)
             {
                 PWINE_REGSTOREINFO regInfo = CryptMemAlloc(
@@ -1784,7 +1785,8 @@ static PWINECRYPT_CERTSTORE CRYPT_FileOp
     {
         PWINECRYPT_CERTSTORE memStore;
 
-        memStore = CRYPT_MemOpenStore(hCryptProv, dwFlags, NULL);
+        memStore = CertOpenStore(CERT_STORE_PROV_MEMORY, 0, hCryptProv,
+         CERT_STORE_CREATE_NEW_FLAG, NULL);
         if (memStore)
         {
             if (CRYPT_ReadSerializedFile(file, memStore))
@@ -1920,7 +1922,8 @@ static PWINECRYPT_CERTSTORE CRYPT_MsgOpe
 
     TRACE("(%ld, %08x, %p)\n", hCryptProv, dwFlags, pvPara);
 
-    memStore = CRYPT_MemOpenStore(hCryptProv, dwFlags, NULL);
+    memStore = CertOpenStore(CERT_STORE_PROV_MEMORY, 0, hCryptProv,
+     CERT_STORE_CREATE_NEW_FLAG, NULL);
     if (memStore)
     {
         BOOL ret;
-- 
1.4.1


More information about the wine-patches mailing list