Commit 2b094f98 authored by Francois Gouget's avatar Francois Gouget Committed by Alexandre Julliard

jsproxy: Add a __WINE_ALLOC_SIZE attribute to heap_alloc().

And standardize its formatting, type names, etc. Signed-off-by: 's avatarFrancois Gouget <fgouget@free.fr> Signed-off-by: 's avatarAlexandre Julliard <julliard@winehq.org>
parent de242756
......@@ -87,14 +87,14 @@ BOOL WINAPI DllMain( HINSTANCE hinst, DWORD reason, LPVOID reserved )
return TRUE;
}
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 );
return HeapAlloc(GetProcessHeap(), 0, size);
}
static inline BOOL heap_free( LPVOID mem )
static inline BOOL heap_free(void *mem)
{
return HeapFree( GetProcessHeap(), 0, mem );
return HeapFree(GetProcessHeap(), 0, mem);
}
static inline WCHAR *strdupAW( const char *src, int len )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment