Andrew Talbot : ddraw: Memory allocation size fix.
Alexandre Julliard
julliard at winehq.org
Tue May 13 04:39:44 CDT 2008
Module: wine
Branch: master
Commit: 5bf9e88cce8bb90c023afe71023d5561c562dfd1
URL: http://source.winehq.org/git/wine.git/?a=commit;h=5bf9e88cce8bb90c023afe71023d5561c562dfd1
Author: Andrew Talbot <andrew.talbot at talbotville.com>
Date: Mon May 12 20:50:44 2008 +0100
ddraw: Memory allocation size fix.
---
dlls/ddraw/direct3d.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
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-cvs
mailing list