Michael Stefaniuc : d3dx9_36/tests: Use assignment instead of memcpy to copy a struct.

Alexandre Julliard julliard at winehq.org
Thu Jan 24 12:59:49 CST 2013


Module: wine
Branch: master
Commit: 18b2a38ba228109f8a18d5b51d358ab2d5d441b7
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=18b2a38ba228109f8a18d5b51d358ab2d5d441b7

Author: Michael Stefaniuc <mstefani at redhat.de>
Date:   Thu Jan 24 15:06:44 2013 +0100

d3dx9_36/tests: Use assignment instead of memcpy to copy a struct.

---

 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);




More information about the wine-cvs mailing list