[prev in list] [next in list] [prev in thread] [next in thread] 

List:       wine-devel
Subject:    [PATCH] hlink: Use the global HeapAlloc() wrappers
From:       Michael Stefaniuc <mstefani () winehq ! org>
Date:       2018-01-31 21:50:58
Message-ID: 20180131215106.6406-1-mstefani () winehq ! org
[Download RAW message or body]

Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
---
 dlls/hlink/hlink_private.h | 16 +---------------
 1 file changed, 1 insertion(+), 15 deletions(-)

diff --git a/dlls/hlink/hlink_private.h b/dlls/hlink/hlink_private.h
index 33b58ac42f..1b7847bb74 100644
--- a/dlls/hlink/hlink_private.h
+++ b/dlls/hlink/hlink_private.h
@@ -27,26 +27,12 @@
 #include "ole2.h"
 #include "hlink.h"
 
+#include "wine/heap.h"
 #include "wine/unicode.h"
 
 extern HRESULT HLink_Constructor(IUnknown*,REFIID,void**) DECLSPEC_HIDDEN;
 extern HRESULT HLinkBrowseContext_Constructor(IUnknown*,REFIID,void**) DECLSPEC_HIDDEN;
 
-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);
-}
-
 static inline LPWSTR hlink_strdupW(LPCWSTR str)
 {
     LPWSTR ret = NULL;
-- 
2.14.3




[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic