mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
Null check when reading regkey
This commit is contained in:
parent
c9db565b2b
commit
2c66f01cbb
1 changed files with 1 additions and 1 deletions
|
|
@ -6,6 +6,6 @@ internal static class WindowsMediaPlayerHelper
|
||||||
internal static bool IsWindowsMediaPlayerInstalled()
|
internal static bool IsWindowsMediaPlayerInstalled()
|
||||||
{
|
{
|
||||||
using var key = Registry.LocalMachine.OpenSubKey(@"SOFTWARE\Microsoft\MediaPlayer");
|
using var key = Registry.LocalMachine.OpenSubKey(@"SOFTWARE\Microsoft\MediaPlayer");
|
||||||
return key.GetValue("Installation Directory") != null;
|
return key?.GetValue("Installation Directory") != null;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue