crypt32: Remove unnecessary casts.

This commit is contained in:
Andrew Talbot 2007-12-03 22:40:57 +00:00 committed by Alexandre Julliard
parent 750a56016d
commit a06caa0e66
2 changed files with 4 additions and 4 deletions

View File

@ -715,7 +715,7 @@ static BOOL CRYPT_AsnDecodeArray(const struct AsnArrayDescriptor *arrayDesc,
else
array->rgItems = (BYTE *)array +
sizeof(struct GenericArray);
nextData = (BYTE *)array->rgItems +
nextData = array->rgItems +
array->cItems * arrayDesc->itemSize;
for (i = 0, ptr = pbEncoded + 1 + lenBytes; ret &&
i < cItems && ptr - pbEncoded - 1 - lenBytes <

View File

@ -734,7 +734,7 @@ static BOOL CRYPT_SavePKCSToFile(HCERTSTORE store,
{
ret = CRYPT_SavePKCSToMem(store, dwMsgAndCertEncodingType, &blob);
if (ret)
ret = WriteFile((HANDLE)handle, blob.pbData, blob.cbData,
ret = WriteFile(handle, blob.pbData, blob.cbData,
&blob.cbData, NULL);
}
else
@ -750,7 +750,7 @@ static BOOL CRYPT_SavePKCSToFile(HCERTSTORE store,
static BOOL CRYPT_SaveSerializedToFile(HCERTSTORE store,
DWORD dwMsgAndCertEncodingType, void *handle)
{
return CRYPT_WriteSerializedStoreToFile((HANDLE)handle, store);
return CRYPT_WriteSerializedStoreToFile(handle, store);
}
struct MemWrittenTracker
@ -847,7 +847,7 @@ BOOL WINAPI CertSaveStore(HCERTSTORE hCertStore, DWORD dwMsgAndCertEncodingType,
switch (dwSaveTo)
{
case CERT_STORE_SAVE_TO_FILE:
handle = (HANDLE)pvSaveToPara;
handle = pvSaveToPara;
saveFunc = dwSaveAs == CERT_STORE_SAVE_AS_STORE ?
CRYPT_SaveSerializedToFile : CRYPT_SavePKCSToFile;
break;