crypt32: Fix alignment on 64-bit systems.

This commit is contained in:
Juan Lang 2007-09-17 15:02:19 -07:00 committed by Alexandre Julliard
parent 09447fb605
commit cc2059b67c
1 changed files with 3 additions and 3 deletions

View File

@ -316,9 +316,9 @@ static BOOL CRYPT_AsnDecodeSequenceItems(DWORD dwCertEncodingType,
if (ret)
{
/* Account for alignment padding */
if (items[i].size % sizeof(DWORD))
items[i].size += sizeof(DWORD) -
items[i].size % sizeof(DWORD);
if (items[i].size % sizeof(DWORD_PTR))
items[i].size += sizeof(DWORD_PTR) -
items[i].size % sizeof(DWORD_PTR);
TRACE("item %d size: %d\n", i, items[i].size);
if (nextData && items[i].hasPointer &&
items[i].size > items[i].minSize)