Fixed bug loading registry values for nic exclusion list.

servicizing
Sean McArdle 2016-03-29 17:56:39 -07:00
parent da556f71d8
commit 5cf9b27f96
1 changed files with 1 additions and 3 deletions

View File

@ -91,9 +91,7 @@ namespace WifiSitter
List<string> results = new List<string>();
try {
RegistryKey key = Registry.LocalMachine.OpenSubKey(String.Format(@"SYSTEM\CurrentControlSet\services\{0}\NicWhiteList", ServiceName),
RegistryKeyPermissionCheck.ReadSubTree,
System.Security.AccessControl.RegistryRights.EnumerateSubKeys);
RegistryKey key = Registry.LocalMachine.OpenSubKey(String.Format(@"SYSTEM\CurrentControlSet\services\{0}\NicWhiteList", ServiceName), false);
if (key != null) {
var names = key.GetValueNames();
foreach (var n in names) {