Skip to content
Snippets Groups Projects
Commit 56193ecc authored by Dmitry Timoshkov's avatar Dmitry Timoshkov Committed by Alexandre Julliard
Browse files

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

parent faf1b08e
No related branches found
No related tags found
No related merge requests found
......@@ -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);
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment