Francois Gouget : usp10: Add __WINE_ALLOC_SIZE attributes to heap_xxx() functions.

Alexandre Julliard julliard at winehq.org
Mon Feb 27 15:12:09 CST 2017


Module: wine
Branch: master
Commit: 1a42ee31982eaa665448bddbe62aaa7f34557779
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=1a42ee31982eaa665448bddbe62aaa7f34557779

Author: Francois Gouget <fgouget at free.fr>
Date:   Wed Feb 22 11:25:37 2017 +0100

usp10: Add __WINE_ALLOC_SIZE attributes to heap_xxx() functions.

And standardize their type names.

Signed-off-by: Francois Gouget <fgouget at free.fr>
Signed-off-by: Aric Stewart <aric at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 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 f8a6aa5..9a558b4 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);
 }




More information about the wine-cvs mailing list