Alistair Leslie-Hughes : dpnet: Add __WINE_ALLOC_SIZE attributes to heap_xxx() functions.

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


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

Author: Alistair Leslie-Hughes <leslie_alistair at hotmail.com>
Date:   Mon Feb 13 08:17:45 2017 +0000

dpnet: Add __WINE_ALLOC_SIZE attributes to heap_xxx() functions.

Signed-off-by: Alistair Leslie-Hughes <leslie_alistair at hotmail.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/dpnet/dpnet_private.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/dlls/dpnet/dpnet_private.h b/dlls/dpnet/dpnet_private.h
index 256e3f4..49c3495 100644
--- a/dlls/dpnet/dpnet_private.h
+++ b/dlls/dpnet/dpnet_private.h
@@ -154,12 +154,12 @@ typedef struct {
 #define FE(x) { x, #x }	
 #define GE(x) { &x, #x }
 
-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_realloc(void *mem, size_t len)
+static inline void __WINE_ALLOC_SIZE(2) *heap_realloc(void *mem, size_t len)
 {
     return HeapReAlloc( GetProcessHeap(), 0, mem, len);
 }




More information about the wine-cvs mailing list