d3dx9: Use the variable instead of the type in HeapAlloc().