urlmon: Add a __WINE_ALLOC_SIZE attribute to heap_alloc().

Francois Gouget fgouget at free.fr
Sat Feb 18 04:20:55 CST 2017


And standardize its parameter name.

Signed-off-by: Francois Gouget <fgouget at free.fr>
---
 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 4f31f2bb50e..fd82c0b1f81 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);
 }
 
-- 
2.11.0




More information about the wine-patches mailing list