don't try and display data if iphlpapi functions fail

svn path=/trunk/; revision=19134
This commit is contained in:
Ged Murphy 2005-11-11 18:09:46 +00:00
parent 9b19555655
commit b260dcdb81

View file

@ -127,9 +127,16 @@ INT ShowInfo(BOOL bAll)
}
if (! GetAdaptersInfo(pAdapterInfo, &adaptOutBufLen) == NO_ERROR)
{
_tprintf(_T("GetAdaptersInfo failed %lu\n"), GetLastError());
return EXIT_FAILURE;
}
if (! GetNetworkParams(pFixedInfo, &netOutBufLen) == NO_ERROR)
{
_tprintf(_T("GetNetworkParams failed %lu\n"), GetLastError());
return EXIT_FAILURE;
}
pAdapter = pAdapterInfo;
//HKEY hKey;