[PATCH] dnsapi: Use the global HeapAlloc() wrappers

Michael Stefaniuc mstefani at winehq.org
Tue Jan 30 16:40:59 CST 2018


Signed-off-by: Michael Stefaniuc <mstefani at winehq.org>
---
 dlls/dnsapi/dnsapi.h | 15 +--------------
 1 file changed, 1 insertion(+), 14 deletions(-)

diff --git a/dlls/dnsapi/dnsapi.h b/dlls/dnsapi/dnsapi.h
index 8a025211af..0b679731e9 100644
--- a/dlls/dnsapi/dnsapi.h
+++ b/dlls/dnsapi/dnsapi.h
@@ -22,20 +22,7 @@
 # error You must include config.h to use this header
 #endif
 
-static inline void* __WINE_ALLOC_SIZE(1) heap_alloc(size_t size)
-{
-    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);
-}
+#include "wine/heap.h"
 
 static inline LPSTR dns_strdup_a( LPCSTR src )
 {
-- 
2.14.3




More information about the wine-devel mailing list