iccvid: Add a __WINE_ALLOC_SIZE attribute to heap_alloc().
And standardize its formatting, parameter name, etc. Signed-off-by: Francois Gouget <fgouget@free.fr> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
dabb5899cc
commit
4dcdbf359e
|
@ -81,14 +81,14 @@ typedef struct _ICCVID_Info
|
|||
cinepak_info *cvinfo;
|
||||
} ICCVID_Info;
|
||||
|
||||
static inline LPVOID heap_alloc( size_t size )
|
||||
static inline void* __WINE_ALLOC_SIZE(1) heap_alloc(size_t size)
|
||||
{
|
||||
return HeapAlloc( GetProcessHeap(), 0, size );
|
||||
return HeapAlloc(GetProcessHeap(), 0, size);
|
||||
}
|
||||
|
||||
static inline BOOL heap_free( LPVOID ptr )
|
||||
static inline BOOL heap_free(void *mem)
|
||||
{
|
||||
return HeapFree( GetProcessHeap(), 0, ptr );
|
||||
return HeapFree(GetProcessHeap(), 0, mem);
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue