- Only display the default gateway when there is actually a gateway set

svn path=/trunk/; revision=37058
This commit is contained in:
Johannes Anderwald 2008-10-29 13:49:10 +00:00
parent 474c4e0362
commit 8d12e8d2cd

View file

@ -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)
{