DXGL r324 - Code Review

Jump to navigation Jump to search
Repository:DXGL
Revision:r323‎ | r324 | r325 >
Date:18:46, 9 February 2013
Author:admin
Status:new
Tags:
Comment:
Fix mistake in IDirect3DExecuteBuffer::SetExecuteData
Modified paths:
  • /ddraw/glDirect3DExecuteBuffer.cpp (modified) (history)

Diff [purge]

Index: ddraw/glDirect3DExecuteBuffer.cpp
@@ -114,7 +114,7 @@
115115 if(!this) return DDERR_INVALIDOBJECT;
116116 if(!lpData) return DDERR_INVALIDPARAMS;
117117 if(lpData->dwSize != sizeof(D3DEXECUTEDATA)) return DDERR_INVALIDPARAMS;
118 - memcpy(&data,lpData,sizeof(D3DEXECUTEDATA));
 118+ memcpy(&datadesc,lpData,sizeof(D3DEXECUTEDATA));
119119 return D3D_OK;
120120 }
121121