mirror of
https://github.com/reactos/reactos.git
synced 2025-02-22 08:25:03 +00:00
[IPCONFIG] Display non-zero type records only and improve error messages
This commit is contained in:
parent
d170b6ab3e
commit
e196149b71
1 changed files with 10 additions and 4 deletions
|
@ -763,14 +763,18 @@ DisplayDnsRecord(
|
|||
NULL);
|
||||
if (Status != ERROR_SUCCESS)
|
||||
{
|
||||
#if 0
|
||||
if (wType != 0)
|
||||
if (Status == DNS_ERROR_RCODE_NAME_ERROR)
|
||||
{
|
||||
_tprintf(_T("\t%S\n"), pszName);
|
||||
_tprintf(_T("\t----------------------------------------\n"));
|
||||
_tprintf(_T("\tName does not exist\n\n"));
|
||||
}
|
||||
else if (Status == DNS_INFO_NO_RECORDS)
|
||||
{
|
||||
_tprintf(_T("\t%S\n"), pszName);
|
||||
_tprintf(_T("\t----------------------------------------\n"));
|
||||
_tprintf(_T("\tNo records of type %hu\n\n"), wType);
|
||||
}
|
||||
#endif
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -862,7 +866,9 @@ DisplayDns(VOID)
|
|||
{
|
||||
pNextEntry = pThisEntry->pNext;
|
||||
|
||||
DisplayDnsRecord(pThisEntry->pszName, pThisEntry->wType1);
|
||||
if (pThisEntry->wType1 != 0)
|
||||
DisplayDnsRecord(pThisEntry->pszName, pThisEntry->wType1);
|
||||
|
||||
if (pThisEntry->wType2 != 0)
|
||||
DisplayDnsRecord(pThisEntry->pszName, pThisEntry->wType2);
|
||||
|
||||
|
|
Loading…
Reference in a new issue