crypt32(1/17): Don't return fake HCRYPTMSG from CryptMsgOpenTo*

Juan Lang juan.lang at gmail.com
Thu Jun 28 19:25:40 CDT 2007


Skipped content of type multipart/alternative-------------- next part --------------
From 0b7ee8e5f4072c07d2d8562a8454026dba49532a Mon Sep 17 00:00:00 2001
From: Juan Lang <juanlang at juan.corp.google.com>
Date: Thu, 28 Jun 2007 16:41:43 -0700
Subject: [PATCH] Don't return fake HCRYPTMSG from CryptMsgOpenTo*
---
 dlls/crypt32/msg.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/dlls/crypt32/msg.c b/dlls/crypt32/msg.c
index 2377ae2..d00d68e 100644
--- a/dlls/crypt32/msg.c
+++ b/dlls/crypt32/msg.c
@@ -30,7 +30,7 @@ HCRYPTMSG WINAPI CryptMsgOpenToEncode(DW
 {
     FIXME("(%08x, %08x, %08x, %p, %s, %p): stub\n", dwMsgEncodingType, dwFlags,
      dwMsgType, pvMsgEncodeInfo, debugstr_a(pszInnerContentObjID), pStreamInfo);
-    return (HCRYPTMSG)1;
+    return NULL;
 }
 
 HCRYPTMSG WINAPI CryptMsgOpenToDecode(DWORD dwMsgEncodingType, DWORD dwFlags,
@@ -39,7 +39,7 @@ HCRYPTMSG WINAPI CryptMsgOpenToDecode(DW
 {
     FIXME("(%08x, %08x, %08x, %08lx, %p, %p): stub\n", dwMsgEncodingType,
      dwFlags, dwMsgType, hCryptProv, pRecipientInfo, pStreamInfo);
-    return (HCRYPTMSG)2;
+    return NULL;
 }
 
 HCRYPTMSG WINAPI CryptMsgDuplicate(HCRYPTMSG hCryptMsg)
-- 
1.4.1


More information about the wine-patches mailing list