From 565cfa918bd3a2fc9d31fe544ce958cd5bffad23 Mon Sep 17 00:00:00 2001 From: Ionite Date: Sat, 23 Mar 2024 00:57:10 -0400 Subject: [PATCH] Use explicit writeable flag for UriHandler registry access --- StabilityMatrix.Avalonia/Helpers/UriHandler.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/StabilityMatrix.Avalonia/Helpers/UriHandler.cs b/StabilityMatrix.Avalonia/Helpers/UriHandler.cs index 3b16d078..0442466c 100644 --- a/StabilityMatrix.Avalonia/Helpers/UriHandler.cs +++ b/StabilityMatrix.Avalonia/Helpers/UriHandler.cs @@ -83,7 +83,7 @@ public class UriHandler [SupportedOSPlatform("windows")] private void RegisterUriSchemeWin() { - using var key = Registry.CurrentUser.CreateSubKey(@$"SOFTWARE\Classes\{Scheme}"); + using var key = Registry.CurrentUser.CreateSubKey(@$"SOFTWARE\Classes\{Scheme}", true); key.SetValue("", "URL:" + Description); key.SetValue(null, Description);