Module: wine Branch: master Commit: de24275696e4ccadf0e9788f69813d56e4b83c36 URL: http://source.winehq.org/git/wine.git/?a=commit;h=de24275696e4ccadf0e9788f69... Author: Francois Gouget <fgouget(a)free.fr> Date: Sat Feb 11 14:17:22 2017 +0100 atl: Add a __WINE_ALLOC_SIZE attribute to heap_alloc(). And standardize its parameter name. Signed-off-by: Francois Gouget <fgouget(a)free.fr> Signed-off-by: Alexandre Julliard <julliard(a)winehq.org> --- dlls/atl/atl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dlls/atl/atl.c b/dlls/atl/atl.c index 23be343..884ff78 100644 --- a/dlls/atl/atl.c +++ b/dlls/atl/atl.c @@ -33,9 +33,9 @@ HINSTANCE atl_instance; typedef unsigned char cpp_bool; -static inline void *heap_alloc(size_t len) +static inline void* __WINE_ALLOC_SIZE(1) heap_alloc(size_t size) { - return HeapAlloc(GetProcessHeap(), 0, len); + return HeapAlloc(GetProcessHeap(), 0, size); } static inline BOOL heap_free(void *mem)