From 203849d75d0a62e1b1b970cb73941755642f8123 Mon Sep 17 00:00:00 2001 From: Juan Lang Date: Thu, 28 Jun 2007 16:52:37 -0700 Subject: [PATCH] crypt32: Store stream info in message. --- dlls/crypt32/msg.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/dlls/crypt32/msg.c b/dlls/crypt32/msg.c index 536851555a4..5087308ca30 100644 --- a/dlls/crypt32/msg.c +++ b/dlls/crypt32/msg.c @@ -39,15 +39,18 @@ typedef struct _CryptMsgBase { LONG ref; DWORD open_flags; + PCMSG_STREAM_INFO stream_info; CryptMsgCloseFunc close; CryptMsgUpdateFunc update; CryptMsgGetParamFunc get_param; } CryptMsgBase; -static inline void CryptMsgBase_Init(CryptMsgBase *msg, DWORD dwFlags) +static inline void CryptMsgBase_Init(CryptMsgBase *msg, DWORD dwFlags, + PCMSG_STREAM_INFO pStreamInfo) { msg->ref = 1; msg->open_flags = dwFlags; + msg->stream_info = pStreamInfo; } typedef struct _CDataEncodeMsg @@ -69,7 +72,7 @@ static HCRYPTMSG CDataEncodeMsg_Open(DWORD dwFlags, const void *pvMsgEncodeInfo, msg = CryptMemAlloc(sizeof(CDataEncodeMsg)); if (msg) { - CryptMsgBase_Init((CryptMsgBase *)msg, dwFlags); + CryptMsgBase_Init((CryptMsgBase *)msg, dwFlags, pStreamInfo); } return (HCRYPTMSG)msg; }