mirror of
https://github.com/reactos/reactos.git
synced 2025-01-12 09:07:54 +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
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue