Francois Gouget : wmp: Add __WINE_ALLOC_SIZE attributes to heap_xxx() functions.
Alexandre Julliard
julliard at winehq.org
Thu Feb 9 15:54:25 CST 2017
Module: wine
Branch: master
Commit: 97fa31eef22507057ce74abc904d6fb0105c44c4
URL: http://source.winehq.org/git/wine.git/?a=commit;h=97fa31eef22507057ce74abc904d6fb0105c44c4
Author: Francois Gouget <fgouget at free.fr>
Date: Wed Feb 8 17:53:56 2017 +0100
wmp: Add __WINE_ALLOC_SIZE attributes to heap_xxx() functions.
Signed-off-by: Francois Gouget <fgouget at free.fr>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/wmp/wmp_private.h | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/dlls/wmp/wmp_private.h b/dlls/wmp/wmp_private.h
index 91e8465..a44aa35 100644
--- a/dlls/wmp/wmp_private.h
+++ b/dlls/wmp/wmp_private.h
@@ -46,12 +46,12 @@ void unregister_wmp_class(void) DECLSPEC_HIDDEN;
extern HINSTANCE wmp_instance 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);
}
-static inline void *heap_alloc_zero(size_t len)
+static inline void* __WINE_ALLOC_SIZE(1) heap_alloc_zero(size_t len)
{
return HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, len);
}
More information about the wine-cvs
mailing list