crypt32: Remove some unnecessary casts.

This commit is contained in:
Juan Lang 2007-08-16 10:41:31 -07:00 committed by Alexandre Julliard
parent f68036cebd
commit afc50ce3fe
1 changed files with 5 additions and 6 deletions

View File

@ -722,7 +722,7 @@ static BOOL CRYPT_ProvAddCert(PWINECRYPT_CERTSTORE store, void *cert,
if (toReplace) if (toReplace)
ret = ps->memStore->certs.addContext(ps->memStore, cert, toReplace, ret = ps->memStore->certs.addContext(ps->memStore, cert, toReplace,
(const void **)ppStoreContext); ppStoreContext);
else else
{ {
ret = TRUE; ret = TRUE;
@ -731,7 +731,7 @@ static BOOL CRYPT_ProvAddCert(PWINECRYPT_CERTSTORE store, void *cert,
CERT_STORE_PROV_WRITE_ADD_FLAG); CERT_STORE_PROV_WRITE_ADD_FLAG);
if (ret) if (ret)
ret = ps->memStore->certs.addContext(ps->memStore, cert, NULL, ret = ps->memStore->certs.addContext(ps->memStore, cert, NULL,
(const void **)ppStoreContext); ppStoreContext);
} }
/* dirty trick: replace the returned context's hCertStore with /* dirty trick: replace the returned context's hCertStore with
* store. * store.
@ -781,7 +781,7 @@ static BOOL CRYPT_ProvAddCRL(PWINECRYPT_CERTSTORE store, void *crl,
if (toReplace) if (toReplace)
ret = ps->memStore->crls.addContext(ps->memStore, crl, toReplace, ret = ps->memStore->crls.addContext(ps->memStore, crl, toReplace,
(const void **)ppStoreContext); ppStoreContext);
else else
{ {
if (ps->hdr.dwOpenFlags & CERT_STORE_READONLY_FLAG) 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); CERT_STORE_PROV_WRITE_ADD_FLAG);
if (ret) if (ret)
ret = ps->memStore->crls.addContext(ps->memStore, crl, NULL, ret = ps->memStore->crls.addContext(ps->memStore, crl, NULL,
(const void **)ppStoreContext); ppStoreContext);
} }
} }
/* dirty trick: replace the returned context's hCertStore with /* 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, static PWINECRYPT_CERTSTORE CRYPT_ProvCreateStore(HCRYPTPROV hCryptProv,
DWORD dwFlags, PWINECRYPT_CERTSTORE memStore, const CERT_STORE_PROV_INFO *pProvInfo) DWORD dwFlags, PWINECRYPT_CERTSTORE memStore, const CERT_STORE_PROV_INFO *pProvInfo)
{ {
PWINE_PROVIDERSTORE ret = (PWINE_PROVIDERSTORE)CryptMemAlloc( PWINE_PROVIDERSTORE ret = CryptMemAlloc(sizeof(WINE_PROVIDERSTORE));
sizeof(WINE_PROVIDERSTORE));
if (ret) if (ret)
{ {