From baf32ced7428a71d7b59be006b47d6e9eb7f33fe Mon Sep 17 00:00:00 2001 From: Francois Gouget Date: Tue, 24 Mar 2015 11:44:08 +0100 Subject: [PATCH] ddraw/tests: Fix compilation on systems that don't support nameless unions. --- dlls/ddraw/tests/ddraw4.c | 2 +- dlls/ddraw/tests/ddraw7.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dlls/ddraw/tests/ddraw4.c b/dlls/ddraw/tests/ddraw4.c index 8f8b757db3b..d4483466183 100644 --- a/dlls/ddraw/tests/ddraw4.c +++ b/dlls/ddraw/tests/ddraw4.c @@ -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); } diff --git a/dlls/ddraw/tests/ddraw7.c b/dlls/ddraw/tests/ddraw7.c index 66f8cff5eee..f3cd4956bb8 100644 --- a/dlls/ddraw/tests/ddraw7.c +++ b/dlls/ddraw/tests/ddraw7.c @@ -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); }