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

oldstable
Rico Schüller 2011-09-16 08:38:47 +02:00 committed by Alexandre Julliard
parent 7cfdaedd3e
commit a7df4958ab
1 changed files with 1 additions and 1 deletions

View File

@ -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");