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

Alexandre Julliard julliard at winehq.org
Mon Oct 19 09:56:12 CDT 2009


Module: wine
Branch: master
Commit: 323f163af41c1f07326eee015f2c48744da565e9
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=323f163af41c1f07326eee015f2c48744da565e9

Author: Francois Gouget <fgouget at free.fr>
Date:   Sat Oct 17 20:28:08 2009 +0200

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

---

 dlls/ddraw/tests/dsurface.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dlls/ddraw/tests/dsurface.c b/dlls/ddraw/tests/dsurface.c
index 1a6023f..e05c967 100644
--- a/dlls/ddraw/tests/dsurface.c
+++ b/dlls/ddraw/tests/dsurface.c
@@ -3220,7 +3220,7 @@ static void GetDCFormatTest(void)
         ddsd.dwFlags = DDSD_CAPS | DDSD_WIDTH | DDSD_HEIGHT | DDSD_PIXELFORMAT;
         ddsd.dwWidth = 64;
         ddsd.dwHeight = 64;
-        ddsd.ddpfPixelFormat = testdata[i].fmt;
+        U4(ddsd).ddpfPixelFormat = testdata[i].fmt;
         ddsd.ddsCaps.dwCaps = DDSCAPS_OFFSCREENPLAIN;
 
         hr = IDirectDraw7_CreateSurface(dd7, &ddsd, &surface, NULL);




More information about the wine-cvs mailing list