[PATCH] scrrun: Use the global HeapAlloc() wrappers
Michael Stefaniuc
mstefani at winehq.org
Fri Feb 2 17:17:54 CST 2018
Signed-off-by: Michael Stefaniuc <mstefani at winehq.org>
---
dlls/scrrun/dictionary.c | 1 +
dlls/scrrun/filesystem.c | 1 +
dlls/scrrun/scrrun_private.h | 10 ----------
3 files changed, 2 insertions(+), 10 deletions(-)
diff --git a/dlls/scrrun/dictionary.c b/dlls/scrrun/dictionary.c
index 7ebf4a4f87..681274e321 100644
--- a/dlls/scrrun/dictionary.c
+++ b/dlls/scrrun/dictionary.c
@@ -33,6 +33,7 @@
#include "wine/debug.h"
#include "wine/unicode.h"
+#include "wine/heap.h"
#include "wine/list.h"
WINE_DEFAULT_DEBUG_CHANNEL(scrrun);
diff --git a/dlls/scrrun/filesystem.c b/dlls/scrrun/filesystem.c
index 2acef849fa..228a5e98a0 100644
--- a/dlls/scrrun/filesystem.c
+++ b/dlls/scrrun/filesystem.c
@@ -33,6 +33,7 @@
#include "wine/debug.h"
#include "wine/unicode.h"
+#include "wine/heap.h"
WINE_DEFAULT_DEBUG_CHANNEL(scrrun);
diff --git a/dlls/scrrun/scrrun_private.h b/dlls/scrrun/scrrun_private.h
index 3312876088..5083d30a8e 100644
--- a/dlls/scrrun/scrrun_private.h
+++ b/dlls/scrrun/scrrun_private.h
@@ -46,14 +46,4 @@ struct provideclassinfo {
extern void init_classinfo(const GUID *guid, IUnknown *outer, struct provideclassinfo *classinfo) DECLSPEC_HIDDEN;
-static inline void* __WINE_ALLOC_SIZE(1) heap_alloc(size_t len)
-{
- return HeapAlloc(GetProcessHeap(), 0, len);
-}
-
-static inline BOOL heap_free(void *mem)
-{
- return HeapFree(GetProcessHeap(), 0, mem);
-}
-
#endif
--
2.14.3
More information about the wine-devel
mailing list