Module: wine Branch: master Commit: 090fd6d9d29a12138565838b0e48f749c1a6e97a URL: http://source.winehq.org/git/wine.git/?a=commit;h=090fd6d9d29a12138565838b0e...
Author: Francois Gouget fgouget@free.fr Date: Thu Jul 5 16:10:03 2007 +0200
ddraw/tests: Fix compilation on systems that don't support nameless unions.
---
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 0fa5bd8..aaaaeb8 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)