wmp: Add __WINE_ALLOC_SIZE attributes to heap_xxx() functions.
Francois Gouget
fgouget at free.fr
Wed Feb 8 10:53:56 CST 2017
Signed-off-by: Francois Gouget <fgouget at free.fr>
---
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 91e846596b1..a44aa35a1ab 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);
}
--
2.11.0
More information about the wine-patches
mailing list