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:
Francois Gouget 2017-02-11 14:18:30 +01:00 committed by Alexandre Julliard
parent dabb5899cc
commit 4dcdbf359e

View File

@ -81,14 +81,14 @@ typedef struct _ICCVID_Info
cinepak_info *cvinfo; cinepak_info *cvinfo;
} ICCVID_Info; } 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);
} }