spelling: registry

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>
This commit is contained in:
Josh Soref 2020-10-30 14:41:59 -04:00
parent c72ed77632
commit 9c6c7a82cb
2 changed files with 6 additions and 6 deletions

View File

@ -22,7 +22,7 @@ namespace Microsoft.Plugin.Uri
private readonly PluginJsonStorage<UriSettings> _storage;
private bool _disposed;
private UriSettings _uriSettings;
private RegisteryWrapper _registeryWrapper;
private RegistryWrapper _registryWrapper;
public Main()
{
@ -30,7 +30,7 @@ namespace Microsoft.Plugin.Uri
_uriSettings = _storage.Load();
_uriParser = new ExtendedUriParser();
_uriResolver = new UriResolver();
_registeryWrapper = new RegisteryWrapper();
_registryWrapper = new RegistryWrapper();
}
public string BrowserIconPath { get; set; }
@ -109,14 +109,14 @@ namespace Microsoft.Plugin.Uri
{
try
{
var progId = _registeryWrapper.GetRegistryValue("HKEY_CURRENT_USER\\Software\\Microsoft\\Windows\\Shell\\Associations\\UrlAssociations\\http\\UserChoice", "ProgId");
var progId = _registryWrapper.GetRegistryValue("HKEY_CURRENT_USER\\Software\\Microsoft\\Windows\\Shell\\Associations\\UrlAssociations\\http\\UserChoice", "ProgId");
var programLocation =
// Resolve App Icon (UWP)
_registeryWrapper.GetRegistryValue("HKEY_CLASSES_ROOT\\" + progId + "\\Application", "ApplicationIcon")
_registryWrapper.GetRegistryValue("HKEY_CLASSES_ROOT\\" + progId + "\\Application", "ApplicationIcon")
// Resolves default file association icon (UWP + Normal)
?? _registeryWrapper.GetRegistryValue("HKEY_CLASSES_ROOT\\" + progId + "\\DefaultIcon", null);
?? _registryWrapper.GetRegistryValue("HKEY_CLASSES_ROOT\\" + progId + "\\DefaultIcon", null);
// "Handles 'Indirect Strings' (UWP programs)"
if (programLocation.StartsWith("@", StringComparison.Ordinal))

View File

@ -7,7 +7,7 @@ using Microsoft.Win32;
namespace Microsoft.Plugin.Uri
{
public class RegisteryWrapper : IRegistryWrapper
public class RegistryWrapper : IRegistryWrapper
{
public string GetRegistryValue(string registryLocation, string valueName)
{