From 090fd6d9d29a12138565838b0e48f749c1a6e97a Mon Sep 17 00:00:00 2001 From: Francois Gouget Date: Thu, 5 Jul 2007 16:10:03 +0200 Subject: [PATCH] ddraw/tests: Fix compilation on systems that don't support nameless unions. --- dlls/ddraw/tests/d3d.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/dlls/ddraw/tests/d3d.c b/dlls/ddraw/tests/d3d.c index 0fa5bd8ecb2..aaaaeb80e1b 100644 --- a/dlls/ddraw/tests/d3d.c +++ b/dlls/ddraw/tests/d3d.c @@ -321,21 +321,21 @@ static void LightTest(void) rc = IDirect3DDevice7_SetMaterial(lpD3DDevice, &mat); ok(rc == D3D_OK, "IDirect3DDevice7_SetMaterial returned: %x\n", rc); - mat.power = 129.0; + U4(mat).power = 129.0; rc = IDirect3DDevice7_SetMaterial(lpD3DDevice, &mat); ok(rc == D3D_OK, "IDirect3DDevice7_SetMaterial(power = 129.0) returned: %x\n", rc); memset(&mat, 0, sizeof(mat)); rc = IDirect3DDevice7_GetMaterial(lpD3DDevice, &mat); ok(rc == D3D_OK, "IDirect3DDevice7_GetMaterial returned: %x\n", rc); - ok(mat.power == 129, "Returned power is %f\n", mat.power); + ok(U4(mat).power == 129, "Returned power is %f\n", U4(mat).power); - mat.power = -1.0; + U4(mat).power = -1.0; rc = IDirect3DDevice7_SetMaterial(lpD3DDevice, &mat); ok(rc == D3D_OK, "IDirect3DDevice7_SetMaterial(power = -1.0) returned: %x\n", rc); memset(&mat, 0, sizeof(mat)); rc = IDirect3DDevice7_GetMaterial(lpD3DDevice, &mat); ok(rc == D3D_OK, "IDirect3DDevice7_GetMaterial returned: %x\n", rc); - ok(mat.power == -1, "Returned power is %f\n", mat.power); + ok(U4(mat).power == -1, "Returned power is %f\n", U4(mat).power); } static void ProcessVerticesTest(void)