fix: fixed obj != obj checking (according to devops warnings)
This commit is contained in:
parent
ebca114c2e
commit
04571f51b2
1 changed files with 1 additions and 1 deletions
|
@ -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<string> names)
|
||||
|
|
Loading…
Reference in a new issue