Francois Gouget : inseng: Add a __WINE_ALLOC_SIZE attribute to heap_alloc( ).

Alexandre Julliard julliard at winehq.org
Mon Feb 13 15:24:38 CST 2017


Module: wine
Branch: master
Commit: dabb5899cc6bc9d81799698ebb765df6b1010a41
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=dabb5899cc6bc9d81799698ebb765df6b1010a41

Author: Francois Gouget <fgouget at free.fr>
Date:   Sat Feb 11 14:18:03 2017 +0100

inseng: Add a __WINE_ALLOC_SIZE attribute to heap_alloc().

And standardize its parameter name.

Signed-off-by: Francois Gouget <fgouget at free.fr>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/inseng/inseng_main.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/dlls/inseng/inseng_main.c b/dlls/inseng/inseng_main.c
index 03ec984..c95d2c7 100644
--- a/dlls/inseng/inseng_main.c
+++ b/dlls/inseng/inseng_main.c
@@ -36,9 +36,9 @@
 
 WINE_DEFAULT_DEBUG_CHANNEL(inseng);
 
-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)




More information about the wine-cvs mailing list