Christian Costa : d3drm: Face data size is in number of DWORD.
Alexandre Julliard
julliard at winehq.org
Fri Dec 14 14:09:59 CST 2012
Module: wine
Branch: master
Commit: ec51c5f737d4f7dc3def84044ad51605dcc3e79b
URL: http://source.winehq.org/git/wine.git/?a=commit;h=ec51c5f737d4f7dc3def84044ad51605dcc3e79b
Author: Christian Costa <titan.costa at gmail.com>
Date: Fri Dec 14 08:37:53 2012 +0100
d3drm: Face data size is in number of DWORD.
---
dlls/d3drm/meshbuilder.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dlls/d3drm/meshbuilder.c b/dlls/d3drm/meshbuilder.c
index 75f058b..ffbdec7 100644
--- a/dlls/d3drm/meshbuilder.c
+++ b/dlls/d3drm/meshbuilder.c
@@ -2943,7 +2943,7 @@ static HRESULT WINAPI IDirect3DRMMeshImpl_GetGroup(IDirect3DRMMesh* iface,
if (face_data_size)
*face_data_size = This->groups[id].face_data_size;
if (face_data)
- memcpy(face_data, This->groups[id].face_data, This->groups[id].face_data_size);
+ memcpy(face_data, This->groups[id].face_data, This->groups[id].face_data_size * sizeof(DWORD));
return D3DRM_OK;
}
More information about the wine-cvs
mailing list