d3dx9: Use variable instead of type in HeapAlloc.
This commit is contained in:
parent
41e34d77c5
commit
98001ca8c8
|
@ -110,7 +110,7 @@ HRESULT WINAPI D3DXCreateBuffer(DWORD NumBytes, LPD3DXBUFFER* ppBuffer)
|
|||
{
|
||||
ID3DXBufferImpl *object;
|
||||
|
||||
object = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, sizeof(ID3DXBufferImpl));
|
||||
object = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, sizeof(*object));
|
||||
if (object == NULL)
|
||||
{
|
||||
*ppBuffer = NULL;
|
||||
|
|
Loading…
Reference in New Issue