It's OK to have dwNumEntries == 0 if there is no network connection.
This commit is contained in:
parent
faf1b08ef4
commit
56193ecc36
|
@ -214,7 +214,7 @@ static void testGetIpAddrTable(void)
|
|||
ok(apiReturn == NO_ERROR,
|
||||
"GetIpAddrTable(buf, &dwSize, FALSE) returned %ld, expected NO_ERROR\n",
|
||||
apiReturn);
|
||||
if (apiReturn == NO_ERROR)
|
||||
if (apiReturn == NO_ERROR && buf->dwNumEntries)
|
||||
testGetIfEntry(buf->table[0].dwIndex);
|
||||
free(buf);
|
||||
}
|
||||
|
@ -272,9 +272,6 @@ static void testGetIpForwardTable(void)
|
|||
ok(apiReturn == NO_ERROR,
|
||||
"GetIpForwardTable(buf, &dwSize, FALSE) returned %ld, expected NO_ERROR\n",
|
||||
apiReturn);
|
||||
if (apiReturn == NO_ERROR)
|
||||
ok(buf->dwNumEntries > 0,
|
||||
"Got 0 IP forward table entries, expect at least 1\n");
|
||||
free(buf);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue