d3d9: Assign to struct instead of using memcpy
Andrew Talbot
andrew.talbot at talbotville.com
Thu Feb 14 16:02:31 CST 2008
Changelog:
d3d9: Assign to struct instead of using memcpy.
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)) {
More information about the wine-patches
mailing list