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

This commit is contained in:
Michael Stefaniuc 2013-01-24 15:06:44 +01:00 committed by Alexandre Julliard
parent d7c716c470
commit 18b2a38ba2
1 changed files with 1 additions and 1 deletions

View File

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