ddraw/tests: Fix compilation on systems that don't support nameless unions.

This commit is contained in:
Francois Gouget 2015-03-24 11:44:08 +01:00 committed by Alexandre Julliard
parent 61652263fa
commit baf32ced74
2 changed files with 2 additions and 2 deletions

View File

@ -8264,7 +8264,7 @@ static void test_signed_formats(void)
ok(SUCCEEDED(hr), "Failed to lock surface, hr %#x, format %s.\n", hr, formats[i].name);
for (y = 0; y < 4; y++)
{
memcpy((char *)surface_desc.lpSurface + y * surface_desc.lPitch,
memcpy((char *)surface_desc.lpSurface + y * U1(surface_desc).lPitch,
(char *)formats[i].content + y * 4 * formats[i].pixel_size,
width * formats[i].pixel_size);
}

View File

@ -8474,7 +8474,7 @@ static void test_signed_formats(void)
ok(SUCCEEDED(hr), "Failed to lock surface, hr %#x, format %s.\n", hr, formats[i].name);
for (y = 0; y < 4; y++)
{
memcpy((char *)surface_desc.lpSurface + y * surface_desc.lPitch,
memcpy((char *)surface_desc.lpSurface + y * U1(surface_desc).lPitch,
(char *)formats[i].content + y * 4 * formats[i].pixel_size,
width * formats[i].pixel_size);
}