Lei Zhang : cmd: Check the return value from HeapAlloc.