Michael Stefaniuc : hlink: Use the global HeapAlloc() wrappers.
Alexandre Julliard
julliard at winehq.org
Thu Feb 1 16:14:52 CST 2018
Module: wine
Branch: master
Commit: c3ddc115aa1580b436491204c8b97b3c39b4c54c
URL: https://source.winehq.org/git/wine.git/?a=commit;h=c3ddc115aa1580b436491204c8b97b3c39b4c54c
Author: Michael Stefaniuc <mstefani at winehq.org>
Date: Wed Jan 31 22:50:58 2018 +0100
hlink: Use the global HeapAlloc() wrappers.
Signed-off-by: Michael Stefaniuc <mstefani at winehq.org>
Signed-off-by: Alexandre Julliard <julliard at 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 33b58ac..1b7847b 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;
More information about the wine-cvs
mailing list