[ros-diffs] [janderwald] 37058: - Only display the default gateway when there is actually a gateway set

janderwald at svn.reactos.org janderwald at svn.reactos.org
Wed Oct 29 14:49:11 CET 2008


Author: janderwald
Date: Wed Oct 29 08:49:10 2008
New Revision: 37058

URL: http://svn.reactos.org/svn/reactos?rev=37058&view=rev
Log:
- Only display the default gateway when there is actually a gateway set

Modified:
    trunk/reactos/base/applications/network/ipconfig/ipconfig.c

Modified: trunk/reactos/base/applications/network/ipconfig/ipconfig.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/network/ipconfig/ipconfig.c?rev=37058&r1=37057&r2=37058&view=diff
==============================================================================
--- trunk/reactos/base/applications/network/ipconfig/ipconfig.c [iso-8859-1] (original)
+++ trunk/reactos/base/applications/network/ipconfig/ipconfig.c [iso-8859-1] Wed Oct 29 08:49:10 2008
@@ -454,7 +454,10 @@
 
         _tprintf(_T("\tIP Address. . . . . . . . . . . . : %s\n"), pAdapter->IpAddressList.IpAddress.String);
         _tprintf(_T("\tSubnet Mask . . . . . . . . . . . : %s\n"), pAdapter->IpAddressList.IpMask.String);
-        _tprintf(_T("\tDefault Gateway . . . . . . . . . : %s\n"), pAdapter->GatewayList.IpAddress.String);
+        if (pAdapter->GatewayList.IpAddress.String[0] != '0')
+            _tprintf(_T("\tDefault Gateway . . . . . . . . . : %s\n"), pAdapter->GatewayList.IpAddress.String);
+        else
+            _tprintf(_T("\tDefault Gateway . . . . . . . . . :\n"));
 
         if (bAll)
         {



More information about the Ros-diffs mailing list