Module: wine Branch: master Commit: b012ffba58ad899774ccd7614e7a70f2b94f658b URL: http://source.winehq.org/git/wine.git/?a=commit;h=b012ffba58ad899774ccd7614e...
Author: Alexandre Julliard julliard@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; }