jsproxy: Add a __WINE_ALLOC_SIZE attribute to heap_alloc().

Francois Gouget fgouget at free.fr
Sat Feb 11 07:17:42 CST 2017


And standardize its formatting, type names, etc.

Signed-off-by: Francois Gouget <fgouget at free.fr>
---
 dlls/jsproxy/main.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/dlls/jsproxy/main.c b/dlls/jsproxy/main.c
index 1ad57aa46b8..a52fbb4df7d 100644
--- a/dlls/jsproxy/main.c
+++ b/dlls/jsproxy/main.c
@@ -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 )
-- 
2.11.0



More information about the wine-patches mailing list