qcap: Use the global HeapAlloc() wrappers.
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
d6e503a20a
commit
1a9c63fe9f
@ -29,6 +29,7 @@
|
|||||||
#include "qcap_main.h"
|
#include "qcap_main.h"
|
||||||
|
|
||||||
#include "wine/debug.h"
|
#include "wine/debug.h"
|
||||||
|
#include "wine/heap.h"
|
||||||
|
|
||||||
WINE_DEFAULT_DEBUG_CHANNEL(qcap);
|
WINE_DEFAULT_DEBUG_CHANNEL(qcap);
|
||||||
|
|
||||||
|
@ -59,19 +59,4 @@ enum YUV_Format {
|
|||||||
void YUV_Init(void) DECLSPEC_HIDDEN;
|
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;
|
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 */
|
#endif /* _QCAP_MAIN_H_DEFINED */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user