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:
Francois Gouget 2017-02-22 11:25:18 +01:00 committed by Alexandre Julliard
parent 304bd8e203
commit 64be3a2fe0
1 changed files with 4 additions and 5 deletions

View File

@ -18,13 +18,12 @@
HRESULT SWbemLocator_create(LPVOID *) DECLSPEC_HIDDEN;
static void *heap_alloc( size_t len ) __WINE_ALLOC_SIZE(1);
static inline void *heap_alloc( size_t len )
static inline void* __WINE_ALLOC_SIZE(1) heap_alloc(size_t size)
{
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);
}