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

Alexandre Julliard julliard at winehq.org
Tue Sep 13 12:18:08 CDT 2011


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

Author: Dan Kegel <dank at kegel.com>
Date:   Mon Sep 12 14:16:27 2011 -0700

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

---

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

diff --git a/dlls/ddraw/tests/visual.c b/dlls/ddraw/tests/visual.c
index 7a39054..3cb698f 100644
--- a/dlls/ddraw/tests/visual.c
+++ b/dlls/ddraw/tests/visual.c
@@ -58,7 +58,7 @@ static HRESULT WINAPI enum_z_fmt(DDPIXELFORMAT *fmt, void *ctx)
 {
     DDPIXELFORMAT *zfmt = ctx;
 
-    if(U1(fmt)->dwZBufferBitDepth > U1(zfmt)->dwZBufferBitDepth)
+    if(U1(*fmt).dwZBufferBitDepth > U1(*zfmt).dwZBufferBitDepth)
     {
         *zfmt = *fmt;
     }




More information about the wine-cvs mailing list