dnsapi: Add __WINE_ALLOC_SIZE attributes to heap_xxx() functions.

Francois Gouget fgouget at free.fr
Sat Feb 18 04:22:19 CST 2017


And standardize their type names.

Signed-off-by: Francois Gouget <fgouget at free.fr>
---
 dlls/dnsapi/dnsapi.h | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/dlls/dnsapi/dnsapi.h b/dlls/dnsapi/dnsapi.h
index e94b26b577c..8a025211af4 100644
--- a/dlls/dnsapi/dnsapi.h
+++ b/dlls/dnsapi/dnsapi.h
@@ -22,19 +22,19 @@
 # error You must include config.h to use this header
 #endif
 
-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 void *heap_alloc_zero( SIZE_T size )
+static inline void* __WINE_ALLOC_SIZE(1) heap_alloc_zero(size_t size)
 {
-    return HeapAlloc( GetProcessHeap(), HEAP_ZERO_MEMORY, size );
+    return HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, size);
 }
 
-static inline BOOL heap_free( LPVOID mem )
+static inline BOOL heap_free(void *mem)
 {
-    return HeapFree( GetProcessHeap(), 0, mem );
+    return HeapFree(GetProcessHeap(), 0, mem);
 }
 
 static inline LPSTR dns_strdup_a( LPCSTR src )
-- 
2.11.0




More information about the wine-patches mailing list