Bump Microsoft.Win32.Registry from 4.7.0 to 5.0.0 (#706)

* Bump Microsoft.Win32.Registry from 4.7.0 to 5.0.0

Bumps [Microsoft.Win32.Registry](https://github.com/dotnet/runtime) from 4.7.0 to 5.0.0.
- [Release notes](https://github.com/dotnet/runtime/releases)
- [Commits](https://github.com/dotnet/runtime/commits)

Signed-off-by: dependabot[bot] <support@github.com>

* Update Program.cs

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Next Turn <45985406+NextTurn@users.noreply.github.com>
This commit is contained in:
dependabot[bot]
2020-11-12 13:41:41 +08:00
committed by GitHub
parent 5a61df61e3
commit d46a4331d8
2 changed files with 4 additions and 4 deletions

View File

@@ -1055,9 +1055,9 @@ namespace WinSW
DateTime fileLastWriteTime = File.GetLastWriteTime(config.FullPath);
using RegistryKey? registryKey = Registry.LocalMachine
.OpenSubKey("SYSTEM")
.OpenSubKey("CurrentControlSet")
.OpenSubKey("Services")
.OpenSubKey("SYSTEM")?
.OpenSubKey("CurrentControlSet")?
.OpenSubKey("Services")?
.OpenSubKey(config.Name);
if (registryKey is null)