From de24275696e4ccadf0e9788f69813d56e4b83c36 Mon Sep 17 00:00:00 2001 From: Francois Gouget Date: Sat, 11 Feb 2017 14:17:22 +0100 Subject: [PATCH] atl: Add a __WINE_ALLOC_SIZE attribute to heap_alloc(). And standardize its parameter name. Signed-off-by: Francois Gouget Signed-off-by: Alexandre Julliard --- 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 23be343deaa..884ff78b390 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)