Michael Stefaniuc : advapi32: Use the global HeapAlloc() wrappers.

Alexandre Julliard julliard at winehq.org
Tue Jan 30 14:38:13 CST 2018


Module: wine
Branch: master
Commit: 56d0cfbabdf7d06a152ad29501a202f8bed9c68d
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=56d0cfbabdf7d06a152ad29501a202f8bed9c68d

Author: Michael Stefaniuc <mstefani at winehq.org>
Date:   Mon Jan 29 22:50:38 2018 +0100

advapi32: Use the global HeapAlloc() wrappers.

Signed-off-by: Michael Stefaniuc <mstefani at winehq.org>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/advapi32/advapi32_misc.h | 21 +--------------------
 1 file changed, 1 insertion(+), 20 deletions(-)

diff --git a/dlls/advapi32/advapi32_misc.h b/dlls/advapi32/advapi32_misc.h
index 7fc02a4..4ced1e8 100644
--- a/dlls/advapi32/advapi32_misc.h
+++ b/dlls/advapi32/advapi32_misc.h
@@ -23,6 +23,7 @@
 #include "ntsecapi.h"
 #include "winsvc.h"
 #include "winnls.h"
+#include "wine/heap.h"
 
 const char * debugstr_sid(PSID sid) DECLSPEC_HIDDEN;
 BOOL ADVAPI_IsLocalComputer(LPCWSTR ServerName) DECLSPEC_HIDDEN;
@@ -38,26 +39,6 @@ const WCHAR *get_wellknown_privilege_name(const LUID *) DECLSPEC_HIDDEN;
 
 /* memory allocation functions */
 
-static inline void* __WINE_ALLOC_SIZE(1) heap_alloc(size_t size)
-{
-    return HeapAlloc(GetProcessHeap(), 0, size);
-}
-
-static inline void* __WINE_ALLOC_SIZE(1) heap_alloc_zero(size_t size)
-{
-    return HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, size);
-}
-
-static inline void* __WINE_ALLOC_SIZE(2) heap_realloc(void *mem, size_t size)
-{
-    return HeapReAlloc(GetProcessHeap(), 0, mem, size);
-}
-
-static inline BOOL heap_free(void *mem)
-{
-    return HeapFree(GetProcessHeap(), 0, mem);
-}
-
 static inline WCHAR *strdupAW( const char *src )
 {
     WCHAR *dst = NULL;




More information about the wine-cvs mailing list