PIEthernet error 232

PICloud many fixes
PIBroadcast recursive fix
This commit is contained in:
2021-08-20 10:55:47 +03:00
parent 3c20728210
commit 0e65151e9f
5 changed files with 69 additions and 45 deletions

View File

@@ -1040,8 +1040,16 @@ PIEthernet::InterfaceList PIEthernet::interfaces() {
}
pAdapter = pAdapter->Next;
}
} else
piCout << "[PIEthernet] GetAdaptersInfo failed with error:" << ret;
} else {
switch (ret) {
case ERROR_NO_DATA: break;
case ERROR_NOT_SUPPORTED:
piCout << "[PIEthernet] GetAdaptersInfo not supported";
break;
default:
piCout << "[PIEthernet] GetAdaptersInfo failed with error:" << ret;
}
}
if (pAdapterInfo)
HeapFree(GetProcessHeap(), 0, (pAdapterInfo));
#else