Hans Leidekker : crypt32: Use CRT allocation functions.
Alexandre Julliard
julliard at winehq.org
Wed Mar 30 15:43:56 CDT 2022
Module: wine
Branch: master
Commit: 8516a9e9317f8708f98ab112f40d1ab7166a8c6c
URL: https://source.winehq.org/git/wine.git/?a=commit;h=8516a9e9317f8708f98ab112f40d1ab7166a8c6c
Author: Hans Leidekker <hans at codeweavers.com>
Date: Wed Mar 30 11:47:46 2022 +0200
crypt32: Use CRT allocation functions.
Signed-off-by: Hans Leidekker <hans at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/crypt32/main.c | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/dlls/crypt32/main.c b/dlls/crypt32/main.c
index cce90125bc0..4a94bed9b6b 100644
--- a/dlls/crypt32/main.c
+++ b/dlls/crypt32/main.c
@@ -18,6 +18,7 @@
*/
#include <stdarg.h>
+#include <stdlib.h>
#include <stdio.h>
#include "windef.h"
@@ -136,17 +137,17 @@ HLRUCACHE WINAPI I_CryptFreeLruCache(HLRUCACHE h, DWORD unk0, DWORD unk1)
LPVOID WINAPI CryptMemAlloc(ULONG cbSize)
{
- return HeapAlloc(GetProcessHeap(), 0, cbSize);
+ return malloc(cbSize);
}
LPVOID WINAPI CryptMemRealloc(LPVOID pv, ULONG cbSize)
{
- return HeapReAlloc(GetProcessHeap(), 0, pv, cbSize);
+ return realloc(pv, cbSize);
}
VOID WINAPI CryptMemFree(LPVOID pv)
{
- HeapFree(GetProcessHeap(), 0, pv);
+ free(pv);
}
DWORD WINAPI I_CryptAllocTls(void)
More information about the wine-cvs
mailing list