Commit e68620c0 authored by Michael Stefaniuc's avatar Michael Stefaniuc Committed by Alexandre Julliard

wscript: Use the global HeapAlloc() wrappers.

parent 505a9e02
...@@ -28,6 +28,7 @@ ...@@ -28,6 +28,7 @@
#include "wscript.h" #include "wscript.h"
#include <wine/debug.h> #include <wine/debug.h>
#include <wine/heap.h>
#include <wine/unicode.h> #include <wine/unicode.h>
WINE_DEFAULT_DEBUG_CHANNEL(wscript); WINE_DEFAULT_DEBUG_CHANNEL(wscript);
......
...@@ -33,18 +33,3 @@ extern WCHAR **argums; ...@@ -33,18 +33,3 @@ extern WCHAR **argums;
extern int numOfArgs; extern int numOfArgs;
extern VARIANT_BOOL wshInteractive; 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);
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment