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