netprofm: Add a __WINE_ALLOC_SIZE attribute to heap_alloc().

Francois Gouget fgouget at free.fr
Sat Feb 18 04:21:24 CST 2017


And standardize its formatting, type names, etc.

Signed-off-by: Francois Gouget <fgouget at free.fr>
---
 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
-- 
2.11.0




More information about the wine-patches mailing list