gdi32/tests: Use the global HeapAlloc() wrappers.
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org> Signed-off-by: Huw Davies <huw@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
062948f57e
commit
5c3928df94
|
@ -28,6 +28,7 @@
|
||||||
#include "winuser.h"
|
#include "winuser.h"
|
||||||
#include "winnls.h"
|
#include "winnls.h"
|
||||||
|
|
||||||
|
#include "wine/heap.h"
|
||||||
#include "wine/test.h"
|
#include "wine/test.h"
|
||||||
|
|
||||||
static inline BOOL match_off_by_n(int a, int b, unsigned int n)
|
static inline BOOL match_off_by_n(int a, int b, unsigned int n)
|
||||||
|
@ -109,22 +110,6 @@ static void init(void)
|
||||||
system_lang_id = PRIMARYLANGID(GetSystemDefaultLangID());
|
system_lang_id = PRIMARYLANGID(GetSystemDefaultLangID());
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline void* __WINE_ALLOC_SIZE(1) heap_alloc(size_t size)
|
|
||||||
{
|
|
||||||
return HeapAlloc(GetProcessHeap(), 0, size);
|
|
||||||
}
|
|
||||||
|
|
||||||
static inline void* __WINE_ALLOC_SIZE(2) heap_realloc(void *mem, size_t size)
|
|
||||||
{
|
|
||||||
if (!mem) return heap_alloc(size);
|
|
||||||
return HeapReAlloc(GetProcessHeap(), 0, mem, size);
|
|
||||||
}
|
|
||||||
|
|
||||||
static inline BOOL heap_free(void *mem)
|
|
||||||
{
|
|
||||||
return HeapFree(GetProcessHeap(), 0, mem);
|
|
||||||
}
|
|
||||||
|
|
||||||
static INT CALLBACK is_truetype_font_installed_proc(const LOGFONTA *elf, const TEXTMETRICA *ntm, DWORD type, LPARAM lParam)
|
static INT CALLBACK is_truetype_font_installed_proc(const LOGFONTA *elf, const TEXTMETRICA *ntm, DWORD type, LPARAM lParam)
|
||||||
{
|
{
|
||||||
if (type != TRUETYPE_FONTTYPE) return 1;
|
if (type != TRUETYPE_FONTTYPE) return 1;
|
||||||
|
|
Loading…
Reference in New Issue