[ros-diffs] [cgutman] 41803: - Fix retrieval of the default gateway (missing default gateway in ipconfig)
cgutman at svn.reactos.org
cgutman at svn.reactos.org
Wed Jul 8 09:33:13 CEST 2009
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/iphlpapi_main.c?rev=41803&r1=41802&r2=41803&view=diff
==============================================================================
--- 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);
More information about the Ros-diffs
mailing list