From 44b7ff8b71b3913d5fd80dc6d05e9c08daf69e97 Mon Sep 17 00:00:00 2001 From: Francois Gouget Date: Sat, 18 Feb 2017 11:21:24 +0100 Subject: [PATCH] netprofm: Add a __WINE_ALLOC_SIZE attribute to heap_alloc(). And standardize its formatting, type names, etc. Signed-off-by: Francois Gouget Signed-off-by: Alexandre Julliard --- dlls/netprofm/list.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/dlls/netprofm/list.c b/dlls/netprofm/list.c index 33b2fa6d45e..88477583995 100644 --- a/dlls/netprofm/list.c +++ b/dlls/netprofm/list.c @@ -41,14 +41,14 @@ WINE_DEFAULT_DEBUG_CHANNEL(netprofm); -static inline void *heap_alloc( SIZE_T size ) +static inline void* __WINE_ALLOC_SIZE(1) heap_alloc(size_t size) { - return HeapAlloc( GetProcessHeap(), 0, size ); + return HeapAlloc(GetProcessHeap(), 0, size); } -static inline BOOL heap_free( void *mem ) +static inline BOOL heap_free(void *mem) { - return HeapFree( GetProcessHeap(), 0, mem ); + return HeapFree(GetProcessHeap(), 0, mem); } struct network