Francois Gouget : iccvid: Add a __WINE_ALLOC_SIZE attribute to heap_alloc( ).
Module: wine Branch: master Commit: 4dcdbf359e6d5e767db2a70ab34282a281c6fd16 URL: http://source.winehq.org/git/wine.git/?a=commit;h=4dcdbf359e6d5e767db2a70ab3... Author: Francois Gouget <fgouget(a)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(a)free.fr> Signed-off-by: Alexandre Julliard <julliard(a)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); }
participants (1)
-
Alexandre Julliard