wscript: Use the global HeapAlloc() wrappers.

Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
oldstable
Michael Stefaniuc 2018-02-07 00:20:08 +01:00 committed by Alexandre Julliard
parent 505a9e0283
commit e68620c044
2 changed files with 1 additions and 15 deletions

View File

@ -28,6 +28,7 @@
#include "wscript.h"
#include <wine/debug.h>
#include <wine/heap.h>
#include <wine/unicode.h>
WINE_DEFAULT_DEBUG_CHANNEL(wscript);

View File

@ -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);
}