Use Ordinal string comparison here.
authorMiguel de Icaza <miguel@gnome.org>
Tue, 26 Jun 2012 03:57:09 +0000 (00:57 -0300)
committerMiguel de Icaza <miguel@gnome.org>
Tue, 26 Jun 2012 03:57:09 +0000 (00:57 -0300)
mcs/class/System/System.IO/KeventWatcher.cs

index 1af2d2c4c93dfed2f261637565b93a711fe4c0a3..7c76996cb3ff7c645d7363b8e5a2cc26a7f91dd9 100644 (file)
@@ -334,7 +334,7 @@ namespace System.IO {
                                return;
 
                        lock (fsw) {
-                               if (changedFsi.FullName.StartsWith (fsw.FullPath))
+                               if (changedFsi.FullName.StartsWith (fsw.FullPath, StringComparison.Ordinal))
                                        filename = changedFsi.FullName.Substring (fsw.FullPath.Length + 1);
                                fsw.DispatchEvents (fa, filename, ref renamed);
                                if (fsw.Waiting) {