Commit 2fb3d533 authored by Juan Lang's avatar Juan Lang Committed by Alexandre Julliard

crypt32: Correct copying a signer info's attributes.

parent 07979b99
......@@ -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);
......
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