Francois Gouget : netprofm: Add a __WINE_ALLOC_SIZE attribute to heap_alloc().
Alexandre Julliard
julliard at winehq.org
Mon Feb 20 15:03:43 CST 2017
Module: wine
Branch: master
Commit: 44b7ff8b71b3913d5fd80dc6d05e9c08daf69e97
URL: http://source.winehq.org/git/wine.git/?a=commit;h=44b7ff8b71b3913d5fd80dc6d05e9c08daf69e97
Author: Francois Gouget <fgouget at free.fr>
Date: Sat Feb 18 11:21:24 2017 +0100
netprofm: Add a __WINE_ALLOC_SIZE attribute to heap_alloc().
And standardize its formatting, type names, etc.
Signed-off-by: Francois Gouget <fgouget at free.fr>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
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 33b2fa6..8847758 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
More information about the wine-cvs
mailing list