iccvid: Add a __WINE_ALLOC_SIZE attribute to heap_alloc().

Francois Gouget fgouget at free.fr
Sat Feb 11 07:18:30 CST 2017


And standardize its formatting, parameter name, etc.

Signed-off-by: Francois Gouget <fgouget at free.fr>
---
 dlls/iccvid/iccvid.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/dlls/iccvid/iccvid.c b/dlls/iccvid/iccvid.c
index 1ef2db67542..e5d514703ee 100644
--- a/dlls/iccvid/iccvid.c
+++ b/dlls/iccvid/iccvid.c
@@ -81,14 +81,14 @@ typedef struct _ICCVID_Info
     cinepak_info *cvinfo;
 } ICCVID_Info;
 
-static inline LPVOID 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( LPVOID ptr )
+static inline BOOL heap_free(void *mem)
 {
-    return HeapFree( GetProcessHeap(), 0, ptr );
+    return HeapFree(GetProcessHeap(), 0, mem);
 }
 
 
-- 
2.11.0




More information about the wine-patches mailing list