crypt32: Remove unnecessary casts.

This commit is contained in:
Juan Lang 2008-12-09 14:46:55 -08:00 committed by Alexandre Julliard
parent 8e02da9843
commit fce8a26c00
1 changed files with 4 additions and 5 deletions

View File

@ -476,7 +476,7 @@ static BOOL CertContext_SetProperty(void *context, DWORD dwPropId,
{ {
if (pvData) if (pvData)
{ {
const CRYPT_DATA_BLOB *blob = (const CRYPT_DATA_BLOB *)pvData; const CRYPT_DATA_BLOB *blob = pvData;
ret = ContextPropertyList_SetProperty(properties, dwPropId, ret = ContextPropertyList_SetProperty(properties, dwPropId,
blob->pbData, blob->cbData); blob->pbData, blob->cbData);
@ -491,7 +491,7 @@ static BOOL CertContext_SetProperty(void *context, DWORD dwPropId,
case CERT_DATE_STAMP_PROP_ID: case CERT_DATE_STAMP_PROP_ID:
if (pvData) if (pvData)
ret = ContextPropertyList_SetProperty(properties, dwPropId, ret = ContextPropertyList_SetProperty(properties, dwPropId,
(const BYTE *)pvData, sizeof(FILETIME)); pvData, sizeof(FILETIME));
else else
{ {
ContextPropertyList_RemoveProperty(properties, dwPropId); ContextPropertyList_RemoveProperty(properties, dwPropId);
@ -502,7 +502,7 @@ static BOOL CertContext_SetProperty(void *context, DWORD dwPropId,
{ {
if (pvData) if (pvData)
{ {
const CERT_KEY_CONTEXT *keyContext = (const CERT_KEY_CONTEXT *)pvData; const CERT_KEY_CONTEXT *keyContext = pvData;
if (keyContext->cbSize != sizeof(CERT_KEY_CONTEXT)) if (keyContext->cbSize != sizeof(CERT_KEY_CONTEXT))
{ {
@ -522,8 +522,7 @@ static BOOL CertContext_SetProperty(void *context, DWORD dwPropId,
} }
case CERT_KEY_PROV_INFO_PROP_ID: case CERT_KEY_PROV_INFO_PROP_ID:
if (pvData) if (pvData)
ret = CertContext_SetKeyProvInfoProperty(properties, ret = CertContext_SetKeyProvInfoProperty(properties, pvData);
(const CRYPT_KEY_PROV_INFO *)pvData);
else else
{ {
ContextPropertyList_RemoveProperty(properties, dwPropId); ContextPropertyList_RemoveProperty(properties, dwPropId);