Commit d9ea955d authored by Mike McCormack's avatar Mike McCormack Committed by Alexandre Julliard

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

parent da3d6815
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment