Juan Lang : crypt32: Add CryptMsgControl stub.

Alexandre Julliard julliard at wine.codeweavers.com
Tue Jul 31 07:54:36 CDT 2007


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

Author: Juan Lang <juan.lang at gmail.com>
Date:   Mon Jul 30 12:07:19 2007 -0700

crypt32: Add CryptMsgControl stub.

---

 dlls/crypt32/crypt32.spec |    2 +-
 dlls/crypt32/msg.c        |    8 ++++++++
 include/wincrypt.h        |    2 +-
 3 files changed, 10 insertions(+), 2 deletions(-)

diff --git a/dlls/crypt32/crypt32.spec b/dlls/crypt32/crypt32.spec
index cf85e7b..c7c3c8d 100644
--- a/dlls/crypt32/crypt32.spec
+++ b/dlls/crypt32/crypt32.spec
@@ -141,7 +141,7 @@
 @ stdcall CryptMemRealloc(ptr long)
 @ stub CryptMsgCalculateEncodedLength
 @ stdcall CryptMsgClose(ptr)
-@ stub CryptMsgControl
+@ stdcall CryptMsgControl(ptr long long ptr)
 @ stub CryptMsgCountersign
 @ stub CryptMsgCountersignEncoded
 @ stdcall CryptMsgDuplicate(ptr)
diff --git a/dlls/crypt32/msg.c b/dlls/crypt32/msg.c
index 7e5a080..388821b 100644
--- a/dlls/crypt32/msg.c
+++ b/dlls/crypt32/msg.c
@@ -1994,3 +1994,11 @@ BOOL WINAPI CryptMsgGetParam(HCRYPTMSG hCryptMsg, DWORD dwParamType,
      pvData, pcbData);
     return msg->get_param(hCryptMsg, dwParamType, dwIndex, pvData, pcbData);
 }
+
+BOOL WINAPI CryptMsgControl(HCRYPTMSG hCryptMsg, DWORD dwFlags,
+ DWORD dwCtrlType, const void *pvCtrlPara)
+{
+    FIXME("(%p, %08x, %d, %p): stub\n", hCryptMsg, dwFlags, dwCtrlType,
+     pvCtrlPara);
+    return TRUE;
+}
diff --git a/include/wincrypt.h b/include/wincrypt.h
index eb0cd16..8ae00d6 100644
--- a/include/wincrypt.h
+++ b/include/wincrypt.h
@@ -3822,7 +3822,7 @@ DWORD WINAPI CryptMsgCalculateEncodedLength(DWORD dwMsgEncodingType,
 
 BOOL WINAPI CryptMsgClose(HCRYPTMSG hCryptMsg);
 
-DWORD WINAPI CryptMsgControl(HCRYPTMSG hCryptMsg, DWORD dwFlags,
+BOOL WINAPI CryptMsgControl(HCRYPTMSG hCryptMsg, DWORD dwFlags,
  DWORD dwCtrlType, const void *pvCtrlPara);
 
 BOOL WINAPI CryptMsgCountersign(HCRYPTMSG hCryptMsg, DWORD dwIndex,




More information about the wine-cvs mailing list