Michael Stefaniuc : dnsapi: Use the global HeapAlloc() wrappers.

Alexandre Julliard julliard at winehq.org
Wed Jan 31 15:23:27 CST 2018


Module: wine
Branch: master
Commit: 37ed8ef2b920055123fc11cd9081e995eea24c13
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=37ed8ef2b920055123fc11cd9081e995eea24c13

Author: Michael Stefaniuc <mstefani at winehq.org>
Date:   Tue Jan 30 23:40:59 2018 +0100

dnsapi: Use the global HeapAlloc() wrappers.

Signed-off-by: Michael Stefaniuc <mstefani at winehq.org>
Signed-off-by: Alexandre Julliard <julliard 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 8a02521..0b67973 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 )
 {




More information about the wine-cvs mailing list