ddraw: Memory allocation size fix
Andrew Talbot
andrew.talbot at talbotville.com
Mon May 12 14:50:44 CDT 2008
Changelog:
ddraw: Memory allocation size fix.
diff --git a/dlls/ddraw/direct3d.c b/dlls/ddraw/direct3d.c
index 8d5d95e..ff24762 100644
--- a/dlls/ddraw/direct3d.c
+++ b/dlls/ddraw/direct3d.c
@@ -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");
More information about the wine-patches
mailing list