[PATCH v2] mfplat: Implement MFHeap[Alloc|Free].
Dmitry Timoshkov
dmitry at baikal.ru
Fri Feb 22 00:21:22 CST 2019
Gijs Vermeulen <gijsvrm at gmail.com> wrote:
> +void *WINAPI MFHeapAlloc(SIZE_T size, ULONG flags, char *file, int line, EAllocationType type)
> +{
> + TRACE("%lu %x %s %d %x\n", size, flags, debugstr_a(file), line, type);
> + return HeapAlloc(GetProcessHeap(), flags, size);
> +}
> +
> +void WINAPI MFHeapFree(void *p)
> +{
> + TRACE("%p\n", p);
> + heap_free(p);
> +}
Probabaly for consistency both should either call HeapAlloc/HeapFree or
heap_alloc/heap_free, but since Alloc uses flags Free should likely call
HeapFree.
--
Dmitry.
More information about the wine-devel
mailing list