d3dx9: Use variable instead of type in HeapAlloc.

This commit is contained in:
Rico Schüller 2011-03-30 12:51:37 +02:00 committed by Alexandre Julliard
parent 41e34d77c5
commit 98001ca8c8
1 changed files with 1 additions and 1 deletions

View File

@ -110,7 +110,7 @@ HRESULT WINAPI D3DXCreateBuffer(DWORD NumBytes, LPD3DXBUFFER* ppBuffer)
{ {
ID3DXBufferImpl *object; ID3DXBufferImpl *object;
object = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, sizeof(ID3DXBufferImpl)); object = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, sizeof(*object));
if (object == NULL) if (object == NULL)
{ {
*ppBuffer = NULL; *ppBuffer = NULL;