Module: wine Branch: master Commit: f78afbb1638226ec7805e9e42c266af0abb69122 URL: http://source.winehq.org/git/wine.git/?a=commit;h=f78afbb1638226ec7805e9e42c...
Author: Francois Gouget fgouget@free.fr Date: Sat Feb 18 11:21:37 2017 +0100
msident: 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/msident/msident.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/dlls/msident/msident.c b/dlls/msident/msident.c index c12c19b..3efb190 100644 --- a/dlls/msident/msident.c +++ b/dlls/msident/msident.c @@ -27,9 +27,9 @@
WINE_DEFAULT_DEBUG_CHANNEL(msident);
-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)