mirror of
https://github.com/reactos/reactos.git
synced 2024-12-25 16:50:57 +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)
|
||||
_tprintf(_T("GetAdaptersInfo failed %lu\n"), GetLastError());
|
||||
{
|
||||
_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;
|
||||
|
|
Loading…
Reference in a new issue