atl: Add a __WINE_ALLOC_SIZE attribute to heap_alloc().
Francois Gouget
fgouget at free.fr
Sat Feb 11 07:17:22 CST 2017
And standardize its parameter name.
Signed-off-by: Francois Gouget <fgouget at free.fr>
---
dlls/atl/atl.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/dlls/atl/atl.c b/dlls/atl/atl.c
index 23be343deaa..884ff78b390 100644
--- a/dlls/atl/atl.c
+++ b/dlls/atl/atl.c
@@ -33,9 +33,9 @@ HINSTANCE atl_instance;
typedef unsigned char cpp_bool;
-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