d3dx9_36/tests: Use assignment instead of memcpy to copy a struct.
Michael Stefaniuc
mstefani at redhat.de
Thu Jan 24 08:06:44 CST 2013
---
dlls/d3dx9_36/tests/surface.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dlls/d3dx9_36/tests/surface.c b/dlls/d3dx9_36/tests/surface.c
index bad9d43..bb1104b 100644
--- a/dlls/d3dx9_36/tests/surface.c
+++ b/dlls/d3dx9_36/tests/surface.c
@@ -324,7 +324,7 @@ static void test_dds_header_handling(void)
dds.header.width = tests[i].width;
dds.header.height = tests[i].height;
dds.header.pitch_or_linear_size = tests[i].pitch;
- memcpy(&dds.header.pixel_format, &tests[i].pixel_format, sizeof(struct dds_pixel_format));
+ dds.header.pixel_format = tests[i].pixel_format;
hr = D3DXGetImageInfoFromFileInMemory(&dds, file_size, &info);
ok(hr == tests[i].expected_result, "%d: D3DXGetImageInfoFromFileInMemory returned %#x, expected %#x\n", i, hr, tests[i].expected_result);
--
1.7.7.6
More information about the wine-patches
mailing list