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

Alexandre Julliard julliard at winehq.org
Thu Feb 9 15:54:25 CST 2017


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

Author: Francois Gouget <fgouget at 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 at free.fr>
Signed-off-by: Alexandre Julliard <julliard at 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);
 }




More information about the wine-cvs mailing list