Alexandre Julliard : crypt32: Use allocation function with the correct prototype in CMSG_CONTENT_ENCRYPT_INFO .
Alexandre Julliard
julliard at winehq.org
Thu Dec 9 12:26:32 CST 2010
Module: wine
Branch: master
Commit: b012ffba58ad899774ccd7614e7a70f2b94f658b
URL: http://source.winehq.org/git/wine.git/?a=commit;h=b012ffba58ad899774ccd7614e7a70f2b94f658b
Author: Alexandre Julliard <julliard at winehq.org>
Date: Thu Dec 9 17:43:34 2010 +0100
crypt32: Use allocation function with the correct prototype in CMSG_CONTENT_ENCRYPT_INFO.
---
dlls/crypt32/msg.c | 15 +++++++++++++--
1 files changed, 13 insertions(+), 2 deletions(-)
diff --git a/dlls/crypt32/msg.c b/dlls/crypt32/msg.c
index f083c53..1c5cca4 100644
--- a/dlls/crypt32/msg.c
+++ b/dlls/crypt32/msg.c
@@ -1645,6 +1645,17 @@ static BOOL CRYPT_ExportEncryptedKey(CMSG_CONTENT_ENCRYPT_INFO *info, DWORD i,
return ret;
}
+static LPVOID WINAPI mem_alloc(size_t size)
+{
+ return HeapAlloc(GetProcessHeap(), 0, size);
+}
+
+static VOID WINAPI mem_free(LPVOID pv)
+{
+ HeapFree(GetProcessHeap(), 0, pv);
+}
+
+
static BOOL CContentEncryptInfo_Construct(CMSG_CONTENT_ENCRYPT_INFO *info,
const CMSG_ENVELOPED_ENCODE_INFO_WITH_CMS *in, HCRYPTPROV prov)
{
@@ -1701,8 +1712,8 @@ static BOOL CContentEncryptInfo_Construct(CMSG_CONTENT_ENCRYPT_INFO *info,
else
ret = FALSE;
}
- info->pfnAlloc = CryptMemAlloc;
- info->pfnFree = CryptMemFree;
+ info->pfnAlloc = mem_alloc;
+ info->pfnFree = mem_free;
return ret;
}
More information about the wine-cvs
mailing list