dpnet: Add __WINE_ALLOC_SIZE attributes to heap_xxx() functions.

Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Alistair Leslie-Hughes 2017-02-13 08:17:45 +00:00 committed by Alexandre Julliard
parent bc85fee0f1
commit 2a8a052bf7
1 changed files with 2 additions and 2 deletions

View File

@ -154,12 +154,12 @@ typedef struct {
#define FE(x) { x, #x }
#define GE(x) { &x, #x }
static inline void *heap_alloc( size_t len )
static inline void __WINE_ALLOC_SIZE(1) *heap_alloc( size_t len )
{
return HeapAlloc( GetProcessHeap(), 0, len );
}
static inline void *heap_realloc(void *mem, size_t len)
static inline void __WINE_ALLOC_SIZE(2) *heap_realloc(void *mem, size_t len)
{
return HeapReAlloc( GetProcessHeap(), 0, mem, len);
}