dnsapi: Use the global HeapAlloc() wrappers.

Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Michael Stefaniuc 2018-01-30 23:40:59 +01:00 committed by Alexandre Julliard
parent fdcd7e8fbe
commit 37ed8ef2b9
1 changed files with 1 additions and 14 deletions

View File

@ -22,20 +22,7 @@
# error You must include config.h to use this header # error You must include config.h to use this header
#endif #endif
static inline void* __WINE_ALLOC_SIZE(1) heap_alloc(size_t size) #include "wine/heap.h"
{
return HeapAlloc(GetProcessHeap(), 0, size);
}
static inline void* __WINE_ALLOC_SIZE(1) heap_alloc_zero(size_t size)
{
return HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, size);
}
static inline BOOL heap_free(void *mem)
{
return HeapFree(GetProcessHeap(), 0, mem);
}
static inline LPSTR dns_strdup_a( LPCSTR src ) static inline LPSTR dns_strdup_a( LPCSTR src )
{ {