Skip to content
This repository has been archived by the owner on Jan 1, 2024. It is now read-only.

Commit

Permalink
Fixed HidHide registry check when key does not exist
Browse files Browse the repository at this point in the history
  • Loading branch information
Ryochan7 committed Oct 9, 2023
1 parent 3e78d10 commit e0f3b33
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion DS4Windows/DS4Control/Util.cs
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,7 @@ public static string GetHidHideClientPath()
{
string result = string.Empty;
string installLocation =
Registry.GetValue(@"HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{48DD38C8-443E-4474-A249-AB32389E08F6}", "InstallLocation", "").ToString();
Registry.GetValue(@"HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{48DD38C8-443E-4474-A249-AB32389E08F6}", "InstallLocation", "")?.ToString() ?? string.Empty;
if (!string.IsNullOrEmpty(installLocation))
{
string[] testPaths = new string[]
Expand Down

0 comments on commit e0f3b33

Please sign in to comment.