advpack: Add a __WINE_ALLOC_SIZE attribute to heap_alloc().

Francois Gouget fgouget at free.fr
Fri Feb 10 09:40:56 CST 2017


And standardize its parameter name.

Signed-off-by: Francois Gouget <fgouget at free.fr>
---
 dlls/advpack/advpack_private.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/dlls/advpack/advpack_private.h b/dlls/advpack/advpack_private.h
index 205cc60dc2b..252974f8eaf 100644
--- a/dlls/advpack/advpack_private.h
+++ b/dlls/advpack/advpack_private.h
@@ -27,9 +27,9 @@ void set_ldids(HINF hInf, LPCWSTR pszInstallSection, LPCWSTR pszWorkingDir) DECL
 
 HRESULT launch_exe(LPCWSTR cmd, LPCWSTR dir, HANDLE *phEXE) DECLSPEC_HIDDEN;
 
-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)
-- 
2.11.0



More information about the wine-patches mailing list