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

Francois Gouget fgouget at free.fr
Sat Jul 7 05:58:42 CDT 2007


---
 dlls/ddraw/tests/d3d.c |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/dlls/ddraw/tests/d3d.c b/dlls/ddraw/tests/d3d.c
index d59a9f0..054df51 100644
--- a/dlls/ddraw/tests/d3d.c
+++ b/dlls/ddraw/tests/d3d.c
@@ -1035,11 +1035,11 @@ static void Direct3D1Test(void)
             {D3DCLIP_FRONT, {-1.0}, {-1.0}, {-1.0}}, {0, { 0.5}, { 0.5}, {0.5}},
             {D3DCLIP_FRONT, {-0.5}, {-0.5}, {-0.5}}, {0, {-0.5}, {-0.5}, {0.0}}
         };
-        ok(cmpH[i].hx == outH[i].hx && cmpH[i].hy == outH[i].hy &&
-           cmpH[i].hz == outH[i].hz && cmpH[i].dwFlags == outH[i].dwFlags,
+        ok(U1(cmpH[i]).hx == U1(outH[i]).hx && U2(cmpH[i]).hy == U2(outH[i]).hy &&
+           U3(cmpH[i]).hz == U3(outH[i]).hz && cmpH[i].dwFlags == outH[i].dwFlags,
            "HVertex %d differs. Got %08x %f %f %f, expexted %08x %f %f %f\n", i + 1,
-           outH[i].dwFlags, outH[i].hx, outH[i].hy, outH[i].hz,
-           cmpH[i].dwFlags, cmpH[i].hx, cmpH[i].hy, cmpH[i].hz);
+           outH[i].dwFlags, U1(outH[i]).hx, U2(outH[i]).hy, U3(outH[i]).hz,
+           cmpH[i].dwFlags, U1(cmpH[i]).hx, U2(cmpH[i]).hy, U3(cmpH[i]).hz);
 
         /* No scheme has been found behind those return values. It seems to be
          * whatever data windows has when throwing the vertex away. Modify the
-- 
1.4.4.4



More information about the wine-patches mailing list