Francois Gouget : scrrun: Add a __WINE_ALLOC_SIZE attribute to heap_alloc( ).
Module: wine Branch: master Commit: 0d8d0b9f183392290e3c82aa47f53af963a4b318 URL: http://source.winehq.org/git/wine.git/?a=commit;h=0d8d0b9f183392290e3c82aa47... Author: Francois Gouget <fgouget(a)free.fr> Date: Wed Feb 8 17:53:10 2017 +0100 scrrun: Add a __WINE_ALLOC_SIZE attribute to heap_alloc(). Signed-off-by: Francois Gouget <fgouget(a)free.fr> Signed-off-by: Alexandre Julliard <julliard(a)winehq.org> --- dlls/scrrun/scrrun_private.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/scrrun/scrrun_private.h b/dlls/scrrun/scrrun_private.h index e2023f9..3312876 100644 --- a/dlls/scrrun/scrrun_private.h +++ b/dlls/scrrun/scrrun_private.h @@ -46,7 +46,7 @@ struct provideclassinfo { extern void init_classinfo(const GUID *guid, IUnknown *outer, struct provideclassinfo *classinfo) DECLSPEC_HIDDEN; -static inline void *heap_alloc(size_t len) +static inline void* __WINE_ALLOC_SIZE(1) heap_alloc(size_t len) { return HeapAlloc(GetProcessHeap(), 0, len); }
participants (1)
-
Alexandre Julliard