Francois Gouget : urlmon: Add a __WINE_ALLOC_SIZE attribute to heap_alloc( ).

Alexandre Julliard julliard at winehq.org
Tue Feb 21 16:56:12 CST 2017


Module: wine
Branch: master
Commit: 9c4ac7fd9cc98c5800ac23f9c060a3d840751372
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=9c4ac7fd9cc98c5800ac23f9c060a3d840751372

Author: Francois Gouget <fgouget at free.fr>
Date:   Sat Feb 18 11:20:55 2017 +0100

urlmon: Add a __WINE_ALLOC_SIZE attribute to heap_alloc().

And standardize its parameter name.

Signed-off-by: Francois Gouget <fgouget at free.fr>
Signed-off-by: Jacek Caban <jacek at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/urlmon/tests/uri.c | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/dlls/urlmon/tests/uri.c b/dlls/urlmon/tests/uri.c
index 4f31f2b..fd82c0b 100644
--- a/dlls/urlmon/tests/uri.c
+++ b/dlls/urlmon/tests/uri.c
@@ -7433,12 +7433,13 @@ static inline LPWSTR a2w(LPCSTR str) {
     return ret;
 }
 
-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) {
+static inline BOOL heap_free(void *mem)
+{
     return HeapFree(GetProcessHeap(), 0, mem);
 }
 




More information about the wine-cvs mailing list