Module: wine Branch: master Commit: 203849d75d0a62e1b1b970cb73941755642f8123 URL: http://source.winehq.org/git/wine.git/?a=commit;h=203849d75d0a62e1b1b970cb73...
Author: Juan Lang juan.lang@gmail.com Date: Thu Jun 28 16:52:37 2007 -0700
crypt32: Store stream info in message.
---
dlls/crypt32/msg.c | 7 +++++-- 1 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/dlls/crypt32/msg.c b/dlls/crypt32/msg.c index 5368515..5087308 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; }