From cc2059b67c5734e9193c489eadce9916eda64f04 Mon Sep 17 00:00:00 2001 From: Juan Lang Date: Mon, 17 Sep 2007 15:02:19 -0700 Subject: [PATCH] crypt32: Fix alignment on 64-bit systems. --- dlls/crypt32/decode.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dlls/crypt32/decode.c b/dlls/crypt32/decode.c index 8ce5d430c11..3bd10ed1d9d 100644 --- a/dlls/crypt32/decode.c +++ b/dlls/crypt32/decode.c @@ -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)