Francois Gouget : wbemdisp: Simplify and standardize the heap_xxx() declarations.

Alexandre Julliard julliard at winehq.org
Wed Feb 22 15:42:03 CST 2017


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

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

wbemdisp: Simplify and standardize the heap_xxx() declarations.

Signed-off-by: Francois Gouget <fgouget at free.fr>
Signed-off-by: Hans Leidekker <hans at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/wbemdisp/wbemdisp_private.h | 9 ++++-----
 1 file changed, 4 insertions(+), 5 deletions(-)

diff --git a/dlls/wbemdisp/wbemdisp_private.h b/dlls/wbemdisp/wbemdisp_private.h
index cc84d72..2891248 100644
--- a/dlls/wbemdisp/wbemdisp_private.h
+++ b/dlls/wbemdisp/wbemdisp_private.h
@@ -18,13 +18,12 @@
 
 HRESULT SWbemLocator_create(LPVOID *) DECLSPEC_HIDDEN;
 
-static void *heap_alloc( size_t len ) __WINE_ALLOC_SIZE(1);
-static inline void *heap_alloc( size_t len )
+static inline void* __WINE_ALLOC_SIZE(1) heap_alloc(size_t size)
 {
-    return HeapAlloc( GetProcessHeap(), 0, len );
+    return HeapAlloc(GetProcessHeap(), 0, size);
 }
 
-static inline BOOL heap_free( void *mem )
+static inline BOOL heap_free(void *mem)
 {
-    return HeapFree( GetProcessHeap(), 0, mem );
+    return HeapFree(GetProcessHeap(), 0, mem);
 }




More information about the wine-cvs mailing list