Module: wine Branch: master Commit: c4f829c0f2c679bf3fd67419547a7ca4bb974379 URL: http://source.winehq.org/git/wine.git/?a=commit;h=c4f829c0f2c679bf3fd6741954...
Author: Francois Gouget fgouget@free.fr Date: Sat Feb 11 14:17:30 2017 +0100
wmvcore: Add a __WINE_ALLOC_SIZE attribute to heap_alloc().
And standardize its parameter name.
Signed-off-by: Francois Gouget fgouget@free.fr Signed-off-by: Alexandre Julliard julliard@winehq.org
---
dlls/wmvcore/wmvcore.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/dlls/wmvcore/wmvcore.h b/dlls/wmvcore/wmvcore.h index f4b0963..ca06e0a 100644 --- a/dlls/wmvcore/wmvcore.h +++ b/dlls/wmvcore/wmvcore.h @@ -25,9 +25,9 @@ #include "windef.h" #include "winbase.h"
-static inline void *heap_alloc(size_t len) +static inline void* __WINE_ALLOC_SIZE(1) heap_alloc(size_t size) { - return HeapAlloc(GetProcessHeap(), 0, len); + return HeapAlloc(GetProcessHeap(), 0, size); }
static inline BOOL heap_free(void *mem)