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

Alistair Leslie-Hughes leslie_alistair at hotmail.com
Mon Jan 29 17:12:30 CST 2018


Signed-off-by: Alistair Leslie-Hughes <leslie_alistair at hotmail.com>
---
 dlls/dpnet/dpnet_private.h | 16 +---------------
 1 file changed, 1 insertion(+), 15 deletions(-)

diff --git a/dlls/dpnet/dpnet_private.h b/dlls/dpnet/dpnet_private.h
index 44ff289d..2e72360 100644
--- a/dlls/dpnet/dpnet_private.h
+++ b/dlls/dpnet/dpnet_private.h
@@ -25,6 +25,7 @@
 # error You must include config.h to use this header
 #endif
 
+#include "wine/heap.h"
 #include <wine/list.h>
 #include "winsock2.h"
 #include "wine/unicode.h"
@@ -154,21 +155,6 @@ typedef struct {
 #define FE(x) { x, #x }	
 #define GE(x) { &x, #x }
 
-static inline void __WINE_ALLOC_SIZE(1) *heap_alloc( size_t len )
-{
-    return HeapAlloc( GetProcessHeap(), 0, len );
-}
-
-static inline void __WINE_ALLOC_SIZE(2) *heap_realloc(void *mem, size_t len)
-{
-    return HeapReAlloc( GetProcessHeap(), 0, mem, len);
-}
-
-static inline BOOL heap_free( void *mem )
-{
-    return HeapFree( GetProcessHeap(), 0, mem );
-}
-
 static inline WCHAR *heap_strdupW( const WCHAR *src )
 {
     WCHAR *dst;
-- 
1.9.1




More information about the wine-devel mailing list