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

Francois Gouget fgouget at free.fr
Sat Mar 3 19:00:38 CST 2007


---

This fixes compilation with gcc 2.95.

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

diff --git a/dlls/dplayx/tests/dplayx.c b/dlls/dplayx/tests/dplayx.c
index ebb85f3..d33a1f1 100644
--- a/dlls/dplayx/tests/dplayx.c
+++ b/dlls/dplayx/tests/dplayx.c
@@ -59,7 +59,7 @@ static void test_session_guid(LPDIRECTPLAY4 pDP)
         sessionDesc.dwSize = sizeof( DPSESSIONDESC2 );
         memcpy(&sessionDesc.guidApplication, &appGuid, 16);
         sessionDesc.dwFlags = DPSESSION_CLIENTSERVER;
-        sessionDesc.lpszSessionNameA = name;
+        U1(sessionDesc).lpszSessionNameA = name;
         sessionDesc.dwMaxPlayers = 10;
         sessionDesc.dwCurrentPlayers = 0;
         IDirectPlayX_Open(pDP, &sessionDesc, DPOPEN_CREATE);
-- 
1.4.4.4




More information about the wine-patches mailing list