Mike McCormack : setupapi: Use HeapAlloc/Free instead of malloc/free.
Module: wine Branch: master Commit: d9ea955dbf8a0d75bd69838c500b656cfe9ec01a URL: http://source.winehq.org/git/wine.git/?a=commit;h=d9ea955dbf8a0d75bd69838c50... Author: Mike McCormack <mike(a)codeweavers.com> Date: Fri Nov 10 15:40:21 2006 +0900 setupapi: Use HeapAlloc/Free instead of malloc/free. --- dlls/setupapi/setupcab.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dlls/setupapi/setupcab.c b/dlls/setupapi/setupcab.c index e114354..ca069bd 100644 --- a/dlls/setupapi/setupcab.c +++ b/dlls/setupapi/setupcab.c @@ -105,12 +105,12 @@ static void UnloadCABINETDll(void) static void *sc_cb_alloc(ULONG cb) { - return malloc(cb); + return HeapAlloc(GetProcessHeap(), 0, cb); } static void sc_cb_free(void *pv) { - free(pv); + HeapFree(GetProcessHeap(), 0, pv); } static INT_PTR sc_cb_open(char *pszFile, int oflag, int pmode)
participants (1)
-
Alexandre Julliard