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

Michael Stefaniuc mstefani at winehq.org
Tue Feb 6 17:20:08 CST 2018


Signed-off-by: Michael Stefaniuc <mstefani at winehq.org>
---
 programs/wscript/host.c    |  1 +
 programs/wscript/wscript.h | 15 ---------------
 2 files changed, 1 insertion(+), 15 deletions(-)

diff --git a/programs/wscript/host.c b/programs/wscript/host.c
index 3c30c3ca5d..fb95c0c94d 100644
--- a/programs/wscript/host.c
+++ b/programs/wscript/host.c
@@ -28,6 +28,7 @@
 #include "wscript.h"
 
 #include <wine/debug.h>
+#include <wine/heap.h>
 #include <wine/unicode.h>
 
 WINE_DEFAULT_DEBUG_CHANNEL(wscript);
diff --git a/programs/wscript/wscript.h b/programs/wscript/wscript.h
index 2a64b3456b..d624a2d851 100644
--- a/programs/wscript/wscript.h
+++ b/programs/wscript/wscript.h
@@ -33,18 +33,3 @@ extern WCHAR **argums;
 extern int numOfArgs;
 
 extern VARIANT_BOOL wshInteractive;
-
-static inline void * __WINE_ALLOC_SIZE(1) heap_alloc(size_t len)
-{
-    return HeapAlloc(GetProcessHeap(), 0, len);
-}
-
-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);
-}
-- 
2.14.3




More information about the wine-devel mailing list