Juan Lang : crypt32: Store crypt provider in decode message.

Alexandre Julliard julliard at wine.codeweavers.com
Mon Jul 16 08:23:38 CDT 2007


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

Author: Juan Lang <juan.lang at gmail.com>
Date:   Fri Jul 13 10:58:10 2007 -0700

crypt32: Store crypt provider in decode message.

---

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

diff --git a/dlls/crypt32/msg.c b/dlls/crypt32/msg.c
index e97aa0c..78130d2 100644
--- a/dlls/crypt32/msg.c
+++ b/dlls/crypt32/msg.c
@@ -666,6 +666,13 @@ HCRYPTMSG WINAPI CryptMsgOpenToDecode(DWORD dwMsgEncodingType, DWORD dwFlags,
         CryptMsgBase_Init((CryptMsgBase *)msg, dwFlags, pStreamInfo,
          CDecodeMsg_Close, CDecodeMsg_GetParam, CDecodeMsg_Update);
         msg->type = dwMsgType;
+        if (hCryptProv)
+            msg->crypt_prov = hCryptProv;
+        else
+        {
+            msg->crypt_prov = CRYPT_GetDefaultProvider();
+            msg->base.open_flags &= ~CMSG_CRYPT_RELEASE_CONTEXT_FLAG;
+        }
     }
     return msg;
 }




More information about the wine-cvs mailing list