ddraw: Memory allocation size fix.

This commit is contained in:
Andrew Talbot 2008-05-12 20:50:44 +01:00 committed by Alexandre Julliard
parent e0bdb93650
commit 5bf9e88cce

View file

@ -826,7 +826,7 @@ IDirect3DImpl_7_CreateDevice(IDirect3D7 *iface,
object->wineD3DDevice = This->wineD3DDevice;
/* Create an index buffer, it's needed for indexed drawing */
IndexBufferParent = HeapAlloc(GetProcessHeap(), 0, sizeof(IParentImpl *));
IndexBufferParent = HeapAlloc(GetProcessHeap(), 0, sizeof(IParentImpl));
if(!IndexBufferParent)
{
ERR("Allocating memory for an index buffer parent failed\n");