mirror of
https://github.com/reactos/reactos.git
synced 2024-12-26 17:14:41 +00:00
don't try and display data if iphlpapi functions fail
svn path=/trunk/; revision=19134
This commit is contained in:
parent
9b19555655
commit
b260dcdb81
1 changed files with 8 additions and 1 deletions
|
@ -127,9 +127,16 @@ INT ShowInfo(BOOL bAll)
|
||||||
}
|
}
|
||||||
|
|
||||||
if (! GetAdaptersInfo(pAdapterInfo, &adaptOutBufLen) == NO_ERROR)
|
if (! GetAdaptersInfo(pAdapterInfo, &adaptOutBufLen) == NO_ERROR)
|
||||||
|
{
|
||||||
_tprintf(_T("GetAdaptersInfo failed %lu\n"), GetLastError());
|
_tprintf(_T("GetAdaptersInfo failed %lu\n"), GetLastError());
|
||||||
|
return EXIT_FAILURE;
|
||||||
|
}
|
||||||
|
|
||||||
if (! GetNetworkParams(pFixedInfo, &netOutBufLen) == NO_ERROR)
|
if (! GetNetworkParams(pFixedInfo, &netOutBufLen) == NO_ERROR)
|
||||||
|
{
|
||||||
_tprintf(_T("GetNetworkParams failed %lu\n"), GetLastError());
|
_tprintf(_T("GetNetworkParams failed %lu\n"), GetLastError());
|
||||||
|
return EXIT_FAILURE;
|
||||||
|
}
|
||||||
|
|
||||||
pAdapter = pAdapterInfo;
|
pAdapter = pAdapterInfo;
|
||||||
//HKEY hKey;
|
//HKEY hKey;
|
||||||
|
|
Loading…
Reference in a new issue