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

crypt32: Fix alignment on 64-bit systems.

parent 09447fb6
......@@ -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)
......
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