diff --git a/SafeExamBrowser.Runtime/Operations/SessionIntegrityOperation.cs b/SafeExamBrowser.Runtime/Operations/SessionIntegrityOperation.cs index defbf1f5..30224b7f 100644 --- a/SafeExamBrowser.Runtime/Operations/SessionIntegrityOperation.cs +++ b/SafeExamBrowser.Runtime/Operations/SessionIntegrityOperation.cs @@ -66,7 +66,7 @@ namespace SafeExamBrowser.Runtime.Operations private bool VerifyCursorConfiguration() { var success = true; - var systemPath = $@"{Environment.ExpandEnvironmentVariables("%SystemRoot%")}\cursors\"; + var systemPath = $@"{Environment.ExpandEnvironmentVariables("%SystemRoot%")}\Cursors\"; logger.Info($"Attempting to verify cursor configuration..."); @@ -75,7 +75,7 @@ namespace SafeExamBrowser.Runtime.Operations foreach (var cursor in cursors.Where(c => !string.IsNullOrWhiteSpace(c))) { success &= registry.TryRead(RegistryValue.UserHive.Cursors_Key, cursor, out var value); - success &= value == default || !(value is string) || (value is string path && (string.IsNullOrWhiteSpace(path) || path.StartsWith(systemPath))); + success &= value == default || !(value is string) || (value is string path && (string.IsNullOrWhiteSpace(path) || path.StartsWith(systemPath, StringComparison.OrdinalIgnoreCase))); if (!success) {