crypt32: Correct copying a signer info's attributes.

This commit is contained in:
Juan Lang 2007-09-28 16:12:41 -07:00 committed by Alexandre Julliard
parent 07979b9975
commit 2fb3d53347
1 changed files with 1 additions and 0 deletions

View File

@ -1776,6 +1776,7 @@ static inline void CRYPT_CopyAttributes(CRYPT_ATTRIBUTES *out,
if ((*nextData - (LPBYTE)0) % sizeof(DWORD_PTR))
*nextData += (*nextData - (LPBYTE)0) % sizeof(DWORD_PTR);
out->rgAttr[i].rgValue = (PCRYPT_DATA_BLOB)*nextData;
*nextData += in->rgAttr[i].cValue * sizeof(CRYPT_DATA_BLOB);
for (j = 0; j < in->rgAttr[i].cValue; j++)
CRYPT_CopyBlob(&out->rgAttr[i].rgValue[j],
&in->rgAttr[i].rgValue[j], nextData);