Andrew Talbot : d3d9: Assign to struct instead of using memcpy.
Module: wine Branch: master Commit: 43ed6eae5ae2b35749f7e15e8f186635e03673f1 URL: http://source.winehq.org/git/wine.git/?a=commit;h=43ed6eae5ae2b35749f7e15e8f... Author: Andrew Talbot <andrew.talbot(a)talbotville.com> Date: Thu Feb 14 22:02:31 2008 +0000 d3d9: Assign to struct instead of using memcpy. --- dlls/d3d9/vertexdeclaration.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/dlls/d3d9/vertexdeclaration.c b/dlls/d3d9/vertexdeclaration.c index d26d09d..c6f694a 100644 --- a/dlls/d3d9/vertexdeclaration.c +++ b/dlls/d3d9/vertexdeclaration.c @@ -89,7 +89,7 @@ HRESULT vdecl_convert_fvf( if (!elements) return D3DERR_OUTOFVIDEOMEMORY; - memcpy(&elements[size-1], &end_element, sizeof(D3DVERTEXELEMENT9)); + elements[size-1] = end_element; idx = 0; if (has_pos) { if (!has_blend && (fvf & D3DFVF_XYZRHW)) {
participants (1)
-
Alexandre Julliard