crypt32: Fixed wrong allocation size.

This commit is contained in:
Marcus Meissner 2007-07-24 21:16:01 +02:00 committed by Alexandre Julliard
parent f0e07382cd
commit 60ef860f17
1 changed files with 1 additions and 1 deletions

View File

@ -1231,7 +1231,7 @@ static BOOL WINAPI CRYPT_DEREncodeItemsAsSet(DWORD dwCertEncodingType,
if (desc->cItems)
{
setOf.rgValue = CryptMemAlloc(setOf.cValue * sizeof(CRYPT_DER_BLOB));
setOf.rgValue = CryptMemAlloc(desc->cItems * sizeof(CRYPT_DER_BLOB));
if (!setOf.rgValue)
ret = FALSE;
else