From 8d12e8d2cdffb2e449cc7d6c92f451876403c7ff Mon Sep 17 00:00:00 2001 From: Johannes Anderwald Date: Wed, 29 Oct 2008 13:49:10 +0000 Subject: [PATCH] - Only display the default gateway when there is actually a gateway set svn path=/trunk/; revision=37058 --- reactos/base/applications/network/ipconfig/ipconfig.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/reactos/base/applications/network/ipconfig/ipconfig.c b/reactos/base/applications/network/ipconfig/ipconfig.c index 4d496d53d49..a44fcc2a4f9 100644 --- a/reactos/base/applications/network/ipconfig/ipconfig.c +++ b/reactos/base/applications/network/ipconfig/ipconfig.c @@ -454,7 +454,10 @@ VOID ShowInfo(BOOL bAll) _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) {