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:
parent
bc85fee0f1
commit
2a8a052bf7
|
@ -154,12 +154,12 @@ typedef struct {
|
||||||
#define FE(x) { x, #x }
|
#define FE(x) { x, #x }
|
||||||
#define GE(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 );
|
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);
|
return HeapReAlloc( GetProcessHeap(), 0, mem, len);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue