d3dx9: Use the variable instead of the type in HeapAlloc().
This commit is contained in:
parent
7cfdaedd3e
commit
a7df4958ab
|
@ -1175,7 +1175,7 @@ HRESULT WINAPI D3DXGetShaderConstantTableEx(CONST DWORD* byte_code,
|
|||
if (hr != D3D_OK)
|
||||
return D3DXERR_INVALIDDATA;
|
||||
|
||||
object = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, sizeof(ID3DXConstantTableImpl));
|
||||
object = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, sizeof(*object));
|
||||
if (!object)
|
||||
{
|
||||
ERR("Out of memory\n");
|
||||
|
|
Loading…
Reference in New Issue