From 4042ba935e6cdbfa114ef1f17bfb02f35973fc9a Mon Sep 17 00:00:00 2001 From: Pierre Schweitzer Date: Mon, 7 Dec 2015 22:33:29 +0000 Subject: [PATCH] [IPHLPAPI_APITEST] Add another check that shows that data returned by GetAdaptersAddresses() are incomplete and thus broken... "This isn't the type you're looking for." would say an old man svn path=/trunk/; revision=70290 --- rostests/apitests/iphlpapi/SendARP.c | 1 + 1 file changed, 1 insertion(+) diff --git a/rostests/apitests/iphlpapi/SendARP.c b/rostests/apitests/iphlpapi/SendARP.c index 0c8703ac745..bf869621d42 100644 --- a/rostests/apitests/iphlpapi/SendARP.c +++ b/rostests/apitests/iphlpapi/SendARP.c @@ -80,6 +80,7 @@ static VOID TestUM(IPAddr * Source) if (!Current->FirstUnicastAddress) continue; + ok(Current->FirstUnicastAddress->Address.iSockaddrLength == sizeof(SOCKADDR_IN), "Unexpected length: %u\n", Current->FirstUnicastAddress->Address.iSockaddrLength); SockAddr = (PSOCKADDR_IN)Current->FirstUnicastAddress->Address.lpSockaddr; IpAddr = SockAddr->sin_addr.S_un.S_addr;