mirror of
git://source.winehq.org/git/wine.git
synced 2024-07-21 15:24:09 +00:00
msident: 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
44b7ff8b71
commit
f78afbb163
|
@ -27,9 +27,9 @@
|
||||||
|
|
||||||
WINE_DEFAULT_DEBUG_CHANNEL(msident);
|
WINE_DEFAULT_DEBUG_CHANNEL(msident);
|
||||||
|
|
||||||
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)
|
||||||
|
|
Loading…
Reference in a new issue