mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-06 02:18:20 +00:00
crypt32: Remove unnecessary casts.
This commit is contained in:
parent
750a56016d
commit
a06caa0e66
|
@ -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 <
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue