It's OK to have dwNumEntries == 0 if there is no network connection.

This commit is contained in:
Dmitry Timoshkov 2004-05-06 23:39:59 +00:00 committed by Alexandre Julliard
parent faf1b08ef4
commit 56193ecc36
1 changed files with 1 additions and 4 deletions

View File

@ -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);
}
}