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

Francois Gouget fgouget at free.fr
Sat May 2 06:06:28 CDT 2015


---
 dlls/ddraw/tests/ddraw7.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dlls/ddraw/tests/ddraw7.c b/dlls/ddraw/tests/ddraw7.c
index e151fb7..b8691b8 100644
--- a/dlls/ddraw/tests/ddraw7.c
+++ b/dlls/ddraw/tests/ddraw7.c
@@ -3862,7 +3862,7 @@ static void test_specular_lighting(void)
     ok(SUCCEEDED(hr), "Failed to disable fog, hr %#x.\n", hr);
 
     memset(&material, 0, sizeof(material));
-    U(U2(material).specular).r = 1.0f;
+    U1(U2(material).specular).r = 1.0f;
     U2(U2(material).specular).g = 1.0f;
     U3(U2(material).specular).b = 1.0f;
     U4(U2(material).specular).a = 1.0f;
-- 
2.1.4



More information about the wine-patches mailing list