setupapi: Use HeapAlloc/Free instead of malloc/free.

This commit is contained in:
Mike McCormack 2006-11-10 15:40:21 +09:00 committed by Alexandre Julliard
parent da3d6815da
commit d9ea955dbf
1 changed files with 2 additions and 2 deletions

View File

@ -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)