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