Open registry key as writeable.

This commit is contained in:
2017-05-16 14:36:01 +01:00
parent d0922262e9
commit 8c55bab8bb

View File

@@ -429,7 +429,7 @@ namespace DiscImageChef.Settings
case Interop.PlatformID.WinCE: case Interop.PlatformID.WinCE:
case Interop.PlatformID.WindowsPhone: case Interop.PlatformID.WindowsPhone:
{ {
RegistryKey parentKey = Registry.CurrentUser.OpenSubKey("SOFTWARE").CreateSubKey("Claunia.com"); RegistryKey parentKey = Registry.CurrentUser.OpenSubKey("SOFTWARE", true).CreateSubKey("Claunia.com");
RegistryKey key = parentKey.CreateSubKey("DiscImageChef"); RegistryKey key = parentKey.CreateSubKey("DiscImageChef");
key.SetValue("SaveReportsGlobally", Current.SaveReportsGlobally); key.SetValue("SaveReportsGlobally", Current.SaveReportsGlobally);