Module: wine Branch: master Commit: 93a8ede0e854cb954d81c43c5220481f917189d4 URL: http://source.winehq.org/git/wine.git/?a=commit;h=93a8ede0e854cb954d81c43c52...
Author: Francois Gouget fgouget@free.fr Date: Wed Feb 8 17:53:00 2017 +0100
ole32: Add a __WINE_ALLOC_SIZE attribute to heap_alloc().
Signed-off-by: Francois Gouget fgouget@free.fr Signed-off-by: Alexandre Julliard julliard@winehq.org
---
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 7ceee2c..b9d1e85 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); }