Commit 30a92641 authored by Francois Gouget's avatar Francois Gouget Committed by Alexandre Julliard

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

parent b464f9ca
...@@ -840,16 +840,16 @@ static void test_GetAdaptersAddresses(void) ...@@ -840,16 +840,16 @@ static void test_GetAdaptersAddresses(void)
while (!ret && winetest_debug > 1 && aa) while (!ret && winetest_debug > 1 && aa)
{ {
trace("Length: %u\n", aa->Length); trace("Length: %u\n", S(U(*aa)).Length);
trace("IfIndex: %u\n", aa->IfIndex); trace("IfIndex: %u\n", S(U(*aa)).IfIndex);
trace("Next: %p\n", aa->Next); trace("Next: %p\n", aa->Next);
trace("AdapterName: %s\n", aa->AdapterName); trace("AdapterName: %s\n", aa->AdapterName);
trace("FirstUnicastAddress: %p\n", aa->FirstUnicastAddress); trace("FirstUnicastAddress: %p\n", aa->FirstUnicastAddress);
ua = aa->FirstUnicastAddress; ua = aa->FirstUnicastAddress;
while (ua) while (ua)
{ {
trace("\tLength: %u\n", ua->Length); trace("\tLength: %u\n", S(U(*ua)).Length);
trace("\tFlags: 0x%08x\n", ua->Flags); trace("\tFlags: 0x%08x\n", S(U(*ua)).Flags);
trace("\tNext: %p\n", ua->Next); trace("\tNext: %p\n", ua->Next);
trace("\tAddress.lpSockaddr: %p\n", ua->Address.lpSockaddr); trace("\tAddress.lpSockaddr: %p\n", ua->Address.lpSockaddr);
trace("\tAddress.iSockaddrLength: %d\n", ua->Address.iSockaddrLength); trace("\tAddress.iSockaddrLength: %d\n", ua->Address.iSockaddrLength);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment