ieframe: Add __WINE_ALLOC_SIZE attributes to heap_xxx() functions.
Francois Gouget
fgouget at free.fr
Sat Feb 18 04:21:55 CST 2017
And standardize their formatting and parameter names.
Signed-off-by: Francois Gouget <fgouget at free.fr>
---
dlls/ieframe/ieframe.h | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/dlls/ieframe/ieframe.h b/dlls/ieframe/ieframe.h
index b586cc9f22d..d1f1c5daf24 100644
--- a/dlls/ieframe/ieframe.h
+++ b/dlls/ieframe/ieframe.h
@@ -331,19 +331,19 @@ static inline void unlock_module(void) {
InterlockedDecrement(&module_ref);
}
-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 void *heap_alloc_zero(size_t len)
+static inline void* __WINE_ALLOC_SIZE(1) heap_alloc_zero(size_t size)
{
- return HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, len);
+ return HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, size);
}
-static inline void *heap_realloc(void *mem, size_t len)
+static inline void* __WINE_ALLOC_SIZE(2) heap_realloc(void *mem, size_t size)
{
- return HeapReAlloc(GetProcessHeap(), 0, mem, len);
+ return HeapReAlloc(GetProcessHeap(), 0, mem, size);
}
static inline BOOL heap_free(void *mem)
--
2.11.0
More information about the wine-patches
mailing list