mirror of
https://github.com/reactos/wine.git
synced 2025-02-07 20:57:39 +00:00
wbemdisp: Simplify and standardize the heap_xxx() declarations.
Signed-off-by: Francois Gouget <fgouget@free.fr> Signed-off-by: Hans Leidekker <hans@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
304bd8e203
commit
64be3a2fe0
@ -18,13 +18,12 @@
|
|||||||
|
|
||||||
HRESULT SWbemLocator_create(LPVOID *) DECLSPEC_HIDDEN;
|
HRESULT SWbemLocator_create(LPVOID *) DECLSPEC_HIDDEN;
|
||||||
|
|
||||||
static void *heap_alloc( size_t len ) __WINE_ALLOC_SIZE(1);
|
static inline void* __WINE_ALLOC_SIZE(1) heap_alloc(size_t size)
|
||||||
static inline void *heap_alloc( size_t len )
|
|
||||||
{
|
{
|
||||||
return HeapAlloc( GetProcessHeap(), 0, len );
|
return HeapAlloc(GetProcessHeap(), 0, size);
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline BOOL heap_free( void *mem )
|
static inline BOOL heap_free(void *mem)
|
||||||
{
|
{
|
||||||
return HeapFree( GetProcessHeap(), 0, mem );
|
return HeapFree(GetProcessHeap(), 0, mem);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user