[PATCH 2/2] d3drm: Face data size is in number of DWORD.
Christian Costa
titan.costa at gmail.com
Fri Dec 14 01:37:53 CST 2012
---
dlls/d3drm/meshbuilder.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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-patches
mailing list