mirror of
https://github.com/reactos/reactos.git
synced 2024-10-03 16:05:37 +00:00
- Fix retrieval of the default gateway (missing default gateway in ipconfig)
svn path=/trunk/; revision=41803
This commit is contained in:
parent
43a5a4bdb5
commit
137c0f6dd5
|
@ -103,7 +103,7 @@ DWORD getInterfaceGatewayByIndex(DWORD index)
|
||||||
|
|
||||||
for (ndx = 0; ndx < numRoutes; ndx++)
|
for (ndx = 0; ndx < numRoutes; ndx++)
|
||||||
{
|
{
|
||||||
if ((table->routes[ndx].ifIndex == (index - 1)) && (table->routes[ndx].dest == 0))
|
if ((table->routes[ndx].ifIndex == (index)) && (table->routes[ndx].dest == 0))
|
||||||
retVal = table->routes[ndx].gateway;
|
retVal = table->routes[ndx].gateway;
|
||||||
}
|
}
|
||||||
HeapFree(GetProcessHeap(), 0, table);
|
HeapFree(GetProcessHeap(), 0, table);
|
||||||
|
|
Loading…
Reference in a new issue