Francois Gouget : iccvid: Add a __WINE_ALLOC_SIZE attribute to heap_alloc( ).

Alexandre Julliard julliard at winehq.org
Mon Feb 13 15:24:38 CST 2017


Module: wine
Branch: master
Commit: 4dcdbf359e6d5e767db2a70ab34282a281c6fd16
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=4dcdbf359e6d5e767db2a70ab34282a281c6fd16

Author: Francois Gouget <fgouget at free.fr>
Date:   Sat Feb 11 14:18:30 2017 +0100

iccvid: Add a __WINE_ALLOC_SIZE attribute to heap_alloc().

And standardize its formatting, parameter name, etc.

Signed-off-by: Francois Gouget <fgouget at free.fr>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 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 1ef2db6..e5d5147 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);
 }
 
 




More information about the wine-cvs mailing list