Mike McCormack : setupapi: Use HeapAlloc/Free instead of malloc/free.
Alexandre Julliard
julliard at wine.codeweavers.com
Fri Nov 10 05:43:56 CST 2006
Module: wine
Branch: master
Commit: d9ea955dbf8a0d75bd69838c500b656cfe9ec01a
URL: http://source.winehq.org/git/wine.git/?a=commit;h=d9ea955dbf8a0d75bd69838c500b656cfe9ec01a
Author: Mike McCormack <mike at 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)
More information about the wine-cvs
mailing list