urlmon: 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: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Francois Gouget 2017-02-18 11:20:55 +01:00 committed by Alexandre Julliard
parent e99d22fdcc
commit 9c4ac7fd9c
1 changed files with 4 additions and 3 deletions

View File

@ -7433,12 +7433,13 @@ static inline LPWSTR a2w(LPCSTR str) {
return ret;
}
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) {
static inline BOOL heap_free(void *mem)
{
return HeapFree(GetProcessHeap(), 0, mem);
}