Commit fce8a26c authored by Juan Lang's avatar Juan Lang Committed by Alexandre Julliard

crypt32: Remove unnecessary casts.

parent 8e02da98
......@@ -476,7 +476,7 @@ static BOOL CertContext_SetProperty(void *context, DWORD dwPropId,
{
if (pvData)
{
const CRYPT_DATA_BLOB *blob = (const CRYPT_DATA_BLOB *)pvData;
const CRYPT_DATA_BLOB *blob = pvData;
ret = ContextPropertyList_SetProperty(properties, dwPropId,
blob->pbData, blob->cbData);
......@@ -491,7 +491,7 @@ static BOOL CertContext_SetProperty(void *context, DWORD dwPropId,
case CERT_DATE_STAMP_PROP_ID:
if (pvData)
ret = ContextPropertyList_SetProperty(properties, dwPropId,
(const BYTE *)pvData, sizeof(FILETIME));
pvData, sizeof(FILETIME));
else
{
ContextPropertyList_RemoveProperty(properties, dwPropId);
......@@ -502,7 +502,7 @@ static BOOL CertContext_SetProperty(void *context, DWORD dwPropId,
{
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))
{
......@@ -522,8 +522,7 @@ static BOOL CertContext_SetProperty(void *context, DWORD dwPropId,
}
case CERT_KEY_PROV_INFO_PROP_ID:
if (pvData)
ret = CertContext_SetKeyProvInfoProperty(properties,
(const CRYPT_KEY_PROV_INFO *)pvData);
ret = CertContext_SetKeyProvInfoProperty(properties, pvData);
else
{
ContextPropertyList_RemoveProperty(properties, dwPropId);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment