From 733ec6b47d60c276fe932e2c188ac32f6f15e4a0 Mon Sep 17 00:00:00 2001
From: Thomas Faber <thfabba@gmx.de>
Date: Mon, 23 Jan 2012 18:37:35 +0100
Subject: crypt32: fix build with MSVC

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

diff --git a/dlls/crypt32/msg.c b/dlls/crypt32/msg.c
index 50c1bee..610f8c5 100644
--- a/dlls/crypt32/msg.c
+++ b/dlls/crypt32/msg.c
@@ -1809,7 +1809,12 @@ static BOOL CEnvelopedEncodeMsg_GetParam(HCRYPTMSG hCryptMsg, DWORD dwParamType,
             char oid_rsa_data[] = szOID_RSA_data;
             CRYPT_ENVELOPED_DATA envelopedData = {
              CMSG_ENVELOPED_DATA_PKCS_1_5_VERSION, msg->cRecipientInfo,
-             msg->recipientInfo, { oid_rsa_data, msg->algo, msg->data }
+             msg->recipientInfo, { oid_rsa_data, {
+               msg->algo.pszObjId,
+               { msg->algo.Parameters.cbData, msg->algo.Parameters.pbData }
+              },
+              { msg->data.cbData, msg->data.pbData }
+             }
             };
 
             ret = CRYPT_AsnEncodePKCSEnvelopedData(&envelopedData, pvData,
-- 
1.7.1.GIT
