Juan Lang : crypt32: Remove some unnecessary casts.

Alexandre Julliard julliard at wine.codeweavers.com
Fri Aug 17 06:30:29 CDT 2007


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

Author: Juan Lang <juan.lang at gmail.com>
Date:   Thu Aug 16 10:41:31 2007 -0700

crypt32: Remove some unnecessary casts.

---

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

diff --git a/dlls/crypt32/store.c b/dlls/crypt32/store.c
index 1b92ee4..cc5fccd 100644
--- a/dlls/crypt32/store.c
+++ b/dlls/crypt32/store.c
@@ -722,7 +722,7 @@ static BOOL CRYPT_ProvAddCert(PWINECRYPT_CERTSTORE store, void *cert,
 
     if (toReplace)
         ret = ps->memStore->certs.addContext(ps->memStore, cert, toReplace,
-         (const void **)ppStoreContext);
+         ppStoreContext);
     else
     {
         ret = TRUE;
@@ -731,7 +731,7 @@ static BOOL CRYPT_ProvAddCert(PWINECRYPT_CERTSTORE store, void *cert,
              CERT_STORE_PROV_WRITE_ADD_FLAG);
         if (ret)
             ret = ps->memStore->certs.addContext(ps->memStore, cert, NULL,
-             (const void **)ppStoreContext);
+             ppStoreContext);
     }
     /* dirty trick: replace the returned context's hCertStore with
      * store.
@@ -781,7 +781,7 @@ static BOOL CRYPT_ProvAddCRL(PWINECRYPT_CERTSTORE store, void *crl,
 
     if (toReplace)
         ret = ps->memStore->crls.addContext(ps->memStore, crl, toReplace,
-         (const void **)ppStoreContext);
+         ppStoreContext);
     else
     {
         if (ps->hdr.dwOpenFlags & CERT_STORE_READONLY_FLAG)
@@ -797,7 +797,7 @@ static BOOL CRYPT_ProvAddCRL(PWINECRYPT_CERTSTORE store, void *crl,
                  CERT_STORE_PROV_WRITE_ADD_FLAG);
             if (ret)
                 ret = ps->memStore->crls.addContext(ps->memStore, crl, NULL,
-                 (const void **)ppStoreContext);
+                 ppStoreContext);
         }
     }
     /* dirty trick: replace the returned context's hCertStore with
@@ -856,8 +856,7 @@ static BOOL WINAPI CRYPT_ProvControl(HCERTSTORE hCertStore, DWORD dwFlags,
 static PWINECRYPT_CERTSTORE CRYPT_ProvCreateStore(HCRYPTPROV hCryptProv,
  DWORD dwFlags, PWINECRYPT_CERTSTORE memStore, const CERT_STORE_PROV_INFO *pProvInfo)
 {
-    PWINE_PROVIDERSTORE ret = (PWINE_PROVIDERSTORE)CryptMemAlloc(
-     sizeof(WINE_PROVIDERSTORE));
+    PWINE_PROVIDERSTORE ret = CryptMemAlloc(sizeof(WINE_PROVIDERSTORE));
 
     if (ret)
     {




More information about the wine-cvs mailing list