mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-06 03:20:30 +00:00
atl: 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: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
c4f829c0f2
commit
de24275696
|
@ -33,9 +33,9 @@ HINSTANCE atl_instance;
|
|||
|
||||
typedef unsigned char cpp_bool;
|
||||
|
||||
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 a new issue