diff --git a/SafeExamBrowser.SystemComponents/Registry/Registry.cs b/SafeExamBrowser.SystemComponents/Registry/Registry.cs index c97cd2bc..e0e1eec5 100644 --- a/SafeExamBrowser.SystemComponents/Registry/Registry.cs +++ b/SafeExamBrowser.SystemComponents/Registry/Registry.cs @@ -86,7 +86,7 @@ namespace SafeExamBrowser.SystemComponents.Registry logger.Error($"Failed to read value '{name}' from registry key '{key}'!", e); } - return value != default && value != defaultValue; + return value != default && !ReferenceEquals(value, defaultValue); } public bool TryGetNames(string keyName, out IEnumerable names)