Commit 65b6cf18 authored by Francois Gouget's avatar Francois Gouget Committed by Alexandre Julliard

odbccp32: Add a __WINE_ALLOC_SIZE attribute to heap_alloc().

And standardize its parameter name. Signed-off-by: 's avatarFrancois Gouget <fgouget@free.fr> Signed-off-by: 's avatarAlistair Leslie-Hughes <leslie_alistair@hotmail.com> Signed-off-by: 's avatarAlexandre Julliard <julliard@winehq.org>
parent 176283b0
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment