Juan Lang : wintrust: Use pfnAddStore2Chain internally.

Alexandre Julliard julliard at wine.codeweavers.com
Wed Aug 29 07:48:12 CDT 2007


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

Author: Juan Lang <juan.lang at gmail.com>
Date:   Tue Aug 28 16:09:34 2007 -0700

wintrust: Use pfnAddStore2Chain internally.

---

 dlls/wintrust/softpub.c |   12 ++----------
 1 files changed, 2 insertions(+), 10 deletions(-)

diff --git a/dlls/wintrust/softpub.c b/dlls/wintrust/softpub.c
index 4c8d356..4b6b33a 100644
--- a/dlls/wintrust/softpub.c
+++ b/dlls/wintrust/softpub.c
@@ -168,16 +168,8 @@ static BOOL SOFTPUB_CreateStoreFromMessage(CRYPT_PROVIDER_DATA *data)
      data->hProv, CERT_STORE_NO_CRYPT_RELEASE_FLAG, data->hMsg);
     if (store)
     {
-        data->pahStores = data->psPfns->pfnAlloc(sizeof(HCERTSTORE));
-        if (data->pahStores)
-        {
-            data->chStores = 1;
-            data->pahStores[0] = CertDuplicateStore(store);
-            CertCloseStore(store, 0);
-            ret = TRUE;
-        }
-        else
-            SetLastError(ERROR_OUTOFMEMORY);
+        ret = data->psPfns->pfnAddStore2Chain(data, store);
+        CertCloseStore(store, 0);
     }
     TRACE("returning %d\n", ret);
     return ret;




More information about the wine-cvs mailing list