[PATCH] dpnet: Add __WINE_ALLOC_SIZE attributes to heap_xxx() functions.
Alistair Leslie-Hughes
leslie_alistair at hotmail.com
Mon Feb 13 02:17:45 CST 2017
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair at hotmail.com>
---
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 89e0777..e3ab183 100644
--- a/dlls/dpnet/dpnet_private.h
+++ b/dlls/dpnet/dpnet_private.h
@@ -152,12 +152,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);
}
--
1.9.1
More information about the wine-patches
mailing list