odbccp32: Add a __WINE_ALLOC_SIZE attribute to heap_alloc().
And standardize its parameter name. Signed-off-by: Francois Gouget <fgouget@free.fr> Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
176283b082
commit
65b6cf186d
|
@ -76,9 +76,9 @@ static void clear_errors(void)
|
|||
num_errors = 0;
|
||||
}
|
||||
|
||||
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)
|
||||
|
|
Loading…
Reference in New Issue