usp10: Add __WINE_ALLOC_SIZE attributes to heap_xxx() functions.

Aric Stewart aric at codeweavers.com
Mon Feb 27 06:59:03 CST 2017


Signed-off-by: Aric Stewart <aric at codeweavers.com>

On 2/22/17 4:25 AM, Francois Gouget wrote:
> 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);
>  }
> 



More information about the wine-patches mailing list