Author: cgutman
Date: Wed Jul 8 11:33:12 2009
New Revision: 41803
URL:
http://svn.reactos.org/svn/reactos?rev=41803&view=rev
Log:
- Fix retrieval of the default gateway (missing default gateway in ipconfig)
Modified:
trunk/reactos/dll/win32/iphlpapi/iphlpapi_main.c
Modified: trunk/reactos/dll/win32/iphlpapi/iphlpapi_main.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/iphlpapi/iphlpap…
==============================================================================
--- trunk/reactos/dll/win32/iphlpapi/iphlpapi_main.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/iphlpapi/iphlpapi_main.c [iso-8859-1] Wed Jul 8 11:33:12
2009
@@ -103,7 +103,7 @@
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);