spoolss: Use the global HeapAlloc() wrappers.
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org> Signed-off-by: Huw Davies <huw@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
f7062d1d03
commit
8d3b7e943b
|
@ -31,6 +31,7 @@
|
||||||
#include "spoolss.h"
|
#include "spoolss.h"
|
||||||
|
|
||||||
#include "wine/debug.h"
|
#include "wine/debug.h"
|
||||||
|
#include "wine/heap.h"
|
||||||
|
|
||||||
WINE_DEFAULT_DEBUG_CHANNEL(spoolss);
|
WINE_DEFAULT_DEBUG_CHANNEL(spoolss);
|
||||||
|
|
||||||
|
|
|
@ -23,20 +23,3 @@
|
||||||
|
|
||||||
BOOL backend_load_all(void) DECLSPEC_HIDDEN;
|
BOOL backend_load_all(void) DECLSPEC_HIDDEN;
|
||||||
void backend_unload_all(void) DECLSPEC_HIDDEN;
|
void backend_unload_all(void) DECLSPEC_HIDDEN;
|
||||||
|
|
||||||
/* ## Memory allocation functions ## */
|
|
||||||
|
|
||||||
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 );
|
|
||||||
}
|
|
||||||
|
|
Loading…
Reference in New Issue