Commit 18b2a38b authored by Michael Stefaniuc's avatar Michael Stefaniuc Committed by Alexandre Julliard

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

parent d7c716c4
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment