[PATCH] inetcomm: Use the global HeapAlloc() wrappers

Michael Stefaniuc mstefani at winehq.org
Wed Jan 31 15:50:59 CST 2018


Signed-off-by: Michael Stefaniuc <mstefani at winehq.org>
---
 dlls/inetcomm/inetcomm_private.h | 10 ----------
 dlls/inetcomm/mimeole.c          |  1 +
 dlls/inetcomm/protocol.c         |  1 +
 3 files changed, 2 insertions(+), 10 deletions(-)

diff --git a/dlls/inetcomm/inetcomm_private.h b/dlls/inetcomm/inetcomm_private.h
index 816493bb0b..b27cbd7bc1 100644
--- a/dlls/inetcomm/inetcomm_private.h
+++ b/dlls/inetcomm/inetcomm_private.h
@@ -83,13 +83,3 @@ HRESULT MimeInternational_Construct(IMimeInternational **internat) DECLSPEC_HIDD
 HRESULT SMTPTransportCF_Create(REFIID riid, LPVOID *ppv) DECLSPEC_HIDDEN;
 HRESULT IMAPTransportCF_Create(REFIID riid, LPVOID *ppv) DECLSPEC_HIDDEN;
 HRESULT POP3TransportCF_Create(REFIID riid, LPVOID *ppv) DECLSPEC_HIDDEN;
-
-static inline void * __WINE_ALLOC_SIZE(1) heap_alloc(size_t len)
-{
-    return HeapAlloc(GetProcessHeap(), 0, len);
-}
-
-static inline BOOL heap_free(void *mem)
-{
-    return HeapFree(GetProcessHeap(), 0, mem);
-}
diff --git a/dlls/inetcomm/mimeole.c b/dlls/inetcomm/mimeole.c
index f0e186ca1f..681ca820d4 100644
--- a/dlls/inetcomm/mimeole.c
+++ b/dlls/inetcomm/mimeole.c
@@ -33,6 +33,7 @@
 #include "mimeole.h"
 #include "propvarutil.h"
 
+#include "wine/heap.h"
 #include "wine/list.h"
 #include "wine/debug.h"
 #include "wine/unicode.h"
diff --git a/dlls/inetcomm/protocol.c b/dlls/inetcomm/protocol.c
index b7b01d4aaf..028463a269 100644
--- a/dlls/inetcomm/protocol.c
+++ b/dlls/inetcomm/protocol.c
@@ -25,6 +25,7 @@
 #include "inetcomm_private.h"
 
 #include "wine/debug.h"
+#include "wine/heap.h"
 #include "wine/unicode.h"
 
 WINE_DEFAULT_DEBUG_CHANNEL(inetcomm);
-- 
2.14.3




More information about the wine-devel mailing list