Browse Source

Use OpenRegKey

tags/3.3.5
noisyfox 7 years ago
parent
commit
c908caa584
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      shadowsocks-csharp/Util/Util.cs

+ 1
- 1
shadowsocks-csharp/Util/Util.cs View File

@@ -258,7 +258,7 @@ namespace Shadowsocks.Util
const int minSupportedRelease = 394802;
const string subkey = @"SOFTWARE\Microsoft\NET Framework Setup\NDP\v4\Full\";
using (var ndpKey = RegistryKey.OpenBaseKey(RegistryHive.LocalMachine, RegistryView.Registry32).OpenSubKey(subkey))
using (var ndpKey = OpenRegKey(subkey, false, RegistryHive.LocalMachine))
{
if (ndpKey?.GetValue("Release") != null)
{


Loading…
Cancel
Save