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

Alexandre Julliard julliard at winehq.org
Tue Oct 1 14:54:27 CDT 2013


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

Author: Francois Gouget <fgouget at free.fr>
Date:   Tue Oct  1 08:13:14 2013 +0200

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

---

 dlls/ddraw/tests/ddraw1.c |    2 +-
 dlls/ddraw/tests/ddraw2.c |    4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/dlls/ddraw/tests/ddraw1.c b/dlls/ddraw/tests/ddraw1.c
index 8b21056..8c62901 100644
--- a/dlls/ddraw/tests/ddraw1.c
+++ b/dlls/ddraw/tests/ddraw1.c
@@ -3245,7 +3245,7 @@ static void test_rt_caps(void)
         if (test_data[i].pf)
         {
             surface_desc.dwFlags |= DDSD_PIXELFORMAT;
-            U4(surface_desc).ddpfPixelFormat = *test_data[i].pf;
+            surface_desc.ddpfPixelFormat = *test_data[i].pf;
         }
         if (test_data[i].caps_in & DDSCAPS_ZBUFFER)
         {
diff --git a/dlls/ddraw/tests/ddraw2.c b/dlls/ddraw/tests/ddraw2.c
index d56230d..939fce7 100644
--- a/dlls/ddraw/tests/ddraw2.c
+++ b/dlls/ddraw/tests/ddraw2.c
@@ -3850,7 +3850,7 @@ static void test_rt_caps(void)
         if (test_data[i].pf)
         {
             surface_desc.dwFlags |= DDSD_PIXELFORMAT;
-            U4(surface_desc).ddpfPixelFormat = *test_data[i].pf;
+            surface_desc.ddpfPixelFormat = *test_data[i].pf;
         }
         if (test_data[i].caps_in & DDSCAPS_ZBUFFER)
         {
@@ -3905,7 +3905,7 @@ static void test_rt_caps(void)
         if (test_data[i].pf)
         {
             surface_desc.dwFlags |= DDSD_PIXELFORMAT;
-            U4(surface_desc).ddpfPixelFormat = *test_data[i].pf;
+            surface_desc.ddpfPixelFormat = *test_data[i].pf;
         }
         if (test_data[i].caps_in & DDSCAPS_ZBUFFER)
         {




More information about the wine-cvs mailing list