[IPHLPAPI_APITEST]
authorPierre Schweitzer <pierre@reactos.org>
Mon, 7 Dec 2015 22:33:29 +0000 (22:33 +0000)
committerPierre Schweitzer <pierre@reactos.org>
Mon, 7 Dec 2015 22:33:29 +0000 (22:33 +0000)
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

index 0c8703a..bf86962 100644 (file)
@@ -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;