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

Alexandre Julliard julliard at winehq.org
Tue Feb 6 15:55:49 CST 2018


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

Author: Michael Stefaniuc <mstefani at winehq.org>
Date:   Tue Feb  6 01:07:19 2018 +0100

wer: Use the global HeapAlloc() wrappers.

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

---

 dlls/wer/main.c | 15 +--------------
 1 file changed, 1 insertion(+), 14 deletions(-)

diff --git a/dlls/wer/main.c b/dlls/wer/main.c
index da44aa7..75a22a5 100644
--- a/dlls/wer/main.c
+++ b/dlls/wer/main.c
@@ -25,6 +25,7 @@
 #include "winbase.h"
 #include "winreg.h"
 #include "werapi.h"
+#include "wine/heap.h"
 #include "wine/list.h"
 #include "wine/unicode.h"
 #include "wine/debug.h"
@@ -56,20 +57,6 @@ static const WCHAR regpath_exclude[] =
      'W','i','n','d','o','w','s',' ','E','r','r','o','r',' ','R','e','p','o','r','t','i','n','g','\\',
      'E','x','c','l','u','d','e','d','A','p','p','l','i','c','a','t','i','o','n','s',0};
 
-/***********************************************************************
- * Memory allocation helper
- */
-
-static inline void * __WINE_ALLOC_SIZE(1) heap_alloc_zero(size_t len)
-{
-    return HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, len);
-}
-
-static inline BOOL heap_free(void *mem)
-{
-    return HeapFree(GetProcessHeap(), 0, mem);
-}
-
 BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
 {
     TRACE("(0x%p, %d, %p)\n", hinstDLL, fdwReason, lpvReserved);




More information about the wine-cvs mailing list