Fixed bug loading registry values for nic exclusion list.
parent
da556f71d8
commit
5cf9b27f96
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue