Michael Stefaniuc : qcap: Use the global HeapAlloc() wrappers.
Alexandre Julliard
julliard at winehq.org
Mon Feb 5 16:48:25 CST 2018
Module: wine
Branch: master
Commit: 1a9c63fe9f05fa628b5347e611237eb72eae1f49
URL: https://source.winehq.org/git/wine.git/?a=commit;h=1a9c63fe9f05fa628b5347e611237eb72eae1f49
Author: Michael Stefaniuc <mstefani at winehq.org>
Date: Sat Feb 3 00:17:51 2018 +0100
qcap: Use the global HeapAlloc() wrappers.
Signed-off-by: Michael Stefaniuc <mstefani at winehq.org>
Signed-off-by: Alexandre Julliard <julliard 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 0287271..32f3b56 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 f4684c1..69d94bf 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 */
More information about the wine-cvs
mailing list