This commit is contained in:
BlubbFish 2016-01-20 17:22:17 +00:00
parent 9c9dc41652
commit abff18f504
8 changed files with 8 additions and 1 deletions

View File

@ -186,7 +186,14 @@ namespace NetMonitorUtils
Dictionary<String, String> ret = new Dictionary<String, String>();
foreach (string adapter in adapters)
{
String data = this.serviceController.NetworkGetName(adapter);
String data = "";
try {
data = this.serviceController.NetworkGetName(adapter);
} catch(NetMonitorUtils.Execptions.ServiceControlException e) {
data = "unknown";
this.addLog("NetworkSetter.getNetwork", e.Message, LogLevel.Error);
}
if (data == "unknown")
{
ret.Add(adapter, "unknown");

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.