d3dx9_36/tests: Use assignment instead of memcpy to copy a struct.
This commit is contained in:
parent
d7c716c470
commit
18b2a38ba2
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue