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

Alexandre Julliard julliard at winehq.org
Mon Aug 31 10:48:25 CDT 2009


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

Author: Francois Gouget <fgouget at free.fr>
Date:   Mon Aug 31 11:52:21 2009 +0200

iphlpapi/tests: Fix compilation on systems that don't support nameless unions or structs.

---

 dlls/iphlpapi/tests/iphlpapi.c |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/dlls/iphlpapi/tests/iphlpapi.c b/dlls/iphlpapi/tests/iphlpapi.c
index eaada07..7a35f7c 100644
--- a/dlls/iphlpapi/tests/iphlpapi.c
+++ b/dlls/iphlpapi/tests/iphlpapi.c
@@ -840,16 +840,16 @@ static void test_GetAdaptersAddresses(void)
 
     while (!ret && winetest_debug > 1 && aa)
     {
-        trace("Length:                %u\n", aa->Length);
-        trace("IfIndex:               %u\n", aa->IfIndex);
+        trace("Length:                %u\n", S(U(*aa)).Length);
+        trace("IfIndex:               %u\n", S(U(*aa)).IfIndex);
         trace("Next:                  %p\n", aa->Next);
         trace("AdapterName:           %s\n", aa->AdapterName);
         trace("FirstUnicastAddress:   %p\n", aa->FirstUnicastAddress);
         ua = aa->FirstUnicastAddress;
         while (ua)
         {
-            trace("\tLength:                  %u\n", ua->Length);
-            trace("\tFlags:                   0x%08x\n", ua->Flags);
+            trace("\tLength:                  %u\n", S(U(*ua)).Length);
+            trace("\tFlags:                   0x%08x\n", S(U(*ua)).Flags);
             trace("\tNext:                    %p\n", ua->Next);
             trace("\tAddress.lpSockaddr:      %p\n", ua->Address.lpSockaddr);
             trace("\tAddress.iSockaddrLength: %d\n", ua->Address.iSockaddrLength);




More information about the wine-cvs mailing list