crypt32(11/17): Store stream info in message

Juan Lang juan.lang at gmail.com
Thu Jun 28 19:31:21 CDT 2007


--Juan
-------------- next part --------------
From b853f94dd9a2cccdc8c5f844f5bb40ea81866158 Mon Sep 17 00:00:00 2001
From: Juan Lang <juanlang at juan.corp.google.com>
Date: Thu, 28 Jun 2007 16:52:37 -0700
Subject: [PATCH] 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 44ca1cd..d0c3467 100644
--- a/dlls/crypt32/msg.c
+++ b/dlls/crypt32/msg.c
@@ -40,15 +40,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
@@ -70,7 +73,7 @@ static HCRYPTMSG CDataEncodeMsg_Open(DWO
     msg = CryptMemAlloc(sizeof(CDataEncodeMsg));
     if (msg)
     {
-        CryptMsgBase_Init((CryptMsgBase *)msg, dwFlags);
+        CryptMsgBase_Init((CryptMsgBase *)msg, dwFlags, pStreamInfo);
     }
     return (HCRYPTMSG)msg;
 }
-- 
1.4.1


More information about the wine-patches mailing list