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

Michael Stefaniuc mstefani at winehq.org
Fri Feb 2 17:17:51 CST 2018


Signed-off-by: Michael Stefaniuc <mstefani at winehq.org>
---
 dlls/qcap/avico.c     |  1 +
 dlls/qcap/qcap_main.h | 15 ---------------
 2 files changed, 1 insertion(+), 15 deletions(-)

diff --git a/dlls/qcap/avico.c b/dlls/qcap/avico.c
index 0287271fbc..32f3b56e7a 100644
--- a/dlls/qcap/avico.c
+++ b/dlls/qcap/avico.c
@@ -29,6 +29,7 @@
 #include "qcap_main.h"
 
 #include "wine/debug.h"
+#include "wine/heap.h"
 
 WINE_DEFAULT_DEBUG_CHANNEL(qcap);
 
diff --git a/dlls/qcap/qcap_main.h b/dlls/qcap/qcap_main.h
index f4684c1dd5..69d94bfff6 100644
--- a/dlls/qcap/qcap_main.h
+++ b/dlls/qcap/qcap_main.h
@@ -59,19 +59,4 @@ enum YUV_Format {
 void YUV_Init(void) DECLSPEC_HIDDEN;
 void YUV_To_RGB24(enum YUV_Format format, unsigned char *target, const unsigned char *source, int width, int height) DECLSPEC_HIDDEN;
 
-static inline void * __WINE_ALLOC_SIZE(1) heap_alloc(size_t len)
-{
-    return HeapAlloc(GetProcessHeap(), 0, len);
-}
-
-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);
-}
-
 #endif /* _QCAP_MAIN_H_DEFINED */
-- 
2.14.3




More information about the wine-devel mailing list