Francois Gouget : ddraw/tests: Fix compilation on systems that don' t support nameless unions.
Alexandre Julliard
julliard at winehq.org
Wed Jan 16 07:09:36 CST 2008
Module: wine
Branch: master
Commit: 7478d9c44d25f6cdc257ed77c1998e338cbbbb68
URL: http://source.winehq.org/git/wine.git/?a=commit;h=7478d9c44d25f6cdc257ed77c1998e338cbbbb68
Author: Francois Gouget <fgouget at free.fr>
Date: Wed Jan 16 12:17:27 2008 +0100
ddraw/tests: Fix compilation on systems that don't support nameless unions.
---
dlls/ddraw/tests/ddrawmodes.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/dlls/ddraw/tests/ddrawmodes.c b/dlls/ddraw/tests/ddrawmodes.c
index 5af8ba4..529c81a 100644
--- a/dlls/ddraw/tests/ddrawmodes.c
+++ b/dlls/ddraw/tests/ddrawmodes.c
@@ -110,18 +110,18 @@ static HRESULT WINAPI enummodescallback(LPDDSURFACEDESC lpddsd, LPVOID lpContext
{
trace("Width = %i, Height = %i, Refresh Rate = %i, Pitch = %i, flags =%02X\r\n",
lpddsd->dwWidth, lpddsd->dwHeight,
- U2(*lpddsd).dwRefreshRate, lpddsd->lPitch, lpddsd->dwFlags);
+ U2(*lpddsd).dwRefreshRate, U1(*lpddsd).lPitch, lpddsd->dwFlags);
/* Check that the pitch is valid if applicable */
if(lpddsd->dwFlags & DDSD_PITCH)
{
- ok(lpddsd->lPitch != 0, "EnumDisplayModes callback with bad pitch\n");
+ ok(U1(*lpddsd).lPitch != 0, "EnumDisplayModes callback with bad pitch\n");
}
/* Check that frequency is valid if applicable */
if(lpddsd->dwFlags & DDSD_REFRESHRATE)
{
- ok(lpddsd->dwRefreshRate != 0, "EnumDisplayModes callback with bad refresh rate\n");
+ ok(U2(*lpddsd).dwRefreshRate != 0, "EnumDisplayModes callback with bad refresh rate\n");
}
adddisplaymode(lpddsd);
More information about the wine-cvs
mailing list