usp10: Add __WINE_ALLOC_SIZE attributes to heap_xxx() functions.
Francois Gouget
fgouget at free.fr
Wed Feb 22 04:25:37 CST 2017
And standardize their type names.
Signed-off-by: Francois Gouget <fgouget at free.fr>
---
dlls/usp10/usp10.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/dlls/usp10/usp10.c b/dlls/usp10/usp10.c
index f8a6aa539af..9a558b4adbe 100644
--- a/dlls/usp10/usp10.c
+++ b/dlls/usp10/usp10.c
@@ -710,17 +710,17 @@ typedef struct {
WORD target;
} FindGlyph_struct;
-static inline void *heap_alloc(SIZE_T size)
+static inline void* __WINE_ALLOC_SIZE(1) heap_alloc(size_t size)
{
return HeapAlloc(GetProcessHeap(), 0, size);
}
-static inline void *heap_alloc_zero(SIZE_T size)
+static inline void* __WINE_ALLOC_SIZE(1) heap_alloc_zero(size_t size)
{
return HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, size);
}
-static inline BOOL heap_free(LPVOID mem)
+static inline BOOL heap_free(void *mem)
{
return HeapFree(GetProcessHeap(), 0, mem);
}
--
2.11.0
More information about the wine-patches
mailing list