Juan Lang : crypt32: Correct copying a signer info's attributes.

Alexandre Julliard julliard at winehq.org
Mon Oct 1 07:54:58 CDT 2007


Module: wine
Branch: master
Commit: 2fb3d533475441056ada3dda2be28820162d8a81
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=2fb3d533475441056ada3dda2be28820162d8a81

Author: Juan Lang <juan.lang at gmail.com>
Date:   Fri Sep 28 16:12:41 2007 -0700

crypt32: Correct copying a signer info's attributes.

---

 dlls/crypt32/msg.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/dlls/crypt32/msg.c b/dlls/crypt32/msg.c
index df93c79..15fbbc9 100644
--- a/dlls/crypt32/msg.c
+++ b/dlls/crypt32/msg.c
@@ -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);




More information about the wine-cvs mailing list