[PATCH] oleacc: Use the global HeapAlloc() wrappers
Michael Stefaniuc
mstefani at winehq.org
Thu Feb 1 18:03:57 CST 2018
Signed-off-by: Michael Stefaniuc <mstefani at winehq.org>
---
dlls/oleacc/client.c | 1 +
dlls/oleacc/oleacc_private.h | 10 ----------
dlls/oleacc/window.c | 1 +
3 files changed, 2 insertions(+), 10 deletions(-)
diff --git a/dlls/oleacc/client.c b/dlls/oleacc/client.c
index ddaa89dd66..5b1f0eee5f 100644
--- a/dlls/oleacc/client.c
+++ b/dlls/oleacc/client.c
@@ -22,6 +22,7 @@
#include "wine/unicode.h"
#include "wine/debug.h"
+#include "wine/heap.h"
WINE_DEFAULT_DEBUG_CHANNEL(oleacc);
diff --git a/dlls/oleacc/oleacc_private.h b/dlls/oleacc/oleacc_private.h
index 06e3ba6937..32561ef3d2 100644
--- a/dlls/oleacc/oleacc_private.h
+++ b/dlls/oleacc/oleacc_private.h
@@ -23,13 +23,3 @@ HRESULT create_window_object(HWND, const IID*, void**) DECLSPEC_HIDDEN;
HRESULT get_accpropservices_factory(REFIID, void**) DECLSPEC_HIDDEN;
int convert_child_id(VARIANT *v) DECLSPEC_HIDDEN;
-
-static inline void * __WINE_ALLOC_SIZE(1) heap_alloc_zero(size_t len)
-{
- return HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, len);
-}
-
-static inline BOOL heap_free(void *mem)
-{
- return HeapFree(GetProcessHeap(), 0, mem);
-}
diff --git a/dlls/oleacc/window.c b/dlls/oleacc/window.c
index 64d71677f5..32c19fd7c2 100644
--- a/dlls/oleacc/window.c
+++ b/dlls/oleacc/window.c
@@ -22,6 +22,7 @@
#include "wine/unicode.h"
#include "wine/debug.h"
+#include "wine/heap.h"
WINE_DEFAULT_DEBUG_CHANNEL(oleacc);
--
2.14.3
More information about the wine-devel
mailing list