mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-03 12:23:25 +00:00
- Fix retrieval of the default gateway (missing default gateway in ipconfig)
svn path=/trunk/; revision=41803
This commit is contained in:
@@ -103,7 +103,7 @@ DWORD getInterfaceGatewayByIndex(DWORD index)
|
||||
|
||||
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;
|
||||
}
|
||||
HeapFree(GetProcessHeap(), 0, table);
|
||||
|
||||
Reference in New Issue
Block a user