Francois Gouget : advpack: Add a __WINE_ALLOC_SIZE attribute to heap_alloc ().
Alexandre Julliard
julliard at winehq.org
Fri Feb 10 16:02:25 CST 2017
Module: wine
Branch: master
Commit: 2ed059a46971db9fe097dab9db5584eb1b927350
URL: http://source.winehq.org/git/wine.git/?a=commit;h=2ed059a46971db9fe097dab9db5584eb1b927350
Author: Francois Gouget <fgouget at free.fr>
Date: Fri Feb 10 16:40:56 2017 +0100
advpack: 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: Alexandre Julliard <julliard at winehq.org>
---
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 205cc60..252974f 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)
More information about the wine-cvs
mailing list