ole32: Add a __WINE_ALLOC_SIZE attribute to heap_alloc().

Francois Gouget fgouget at free.fr
Wed Feb 8 10:53:00 CST 2017


Signed-off-by: Francois Gouget <fgouget at free.fr>
---
 dlls/ole32/compobj_private.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dlls/ole32/compobj_private.h b/dlls/ole32/compobj_private.h
index 7ceee2ca579..b9d1e8574d4 100644
--- a/dlls/ole32/compobj_private.h
+++ b/dlls/ole32/compobj_private.h
@@ -320,7 +320,7 @@ extern BOOL actctx_get_miscstatus(const CLSID*, DWORD, DWORD*) DECLSPEC_HIDDEN;
 
 extern const char *debugstr_formatetc(const FORMATETC *formatetc) 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);
 }
-- 
2.11.0




More information about the wine-patches mailing list