OSDN Git Service

PATCH: [ 1323107 ] Patch for crash on save filenames with different cases
authorKimmo Varis <kimmov@gmail.com>
Wed, 12 Oct 2005 19:07:48 +0000 (19:07 +0000)
committerKimmo Varis <kimmov@gmail.com>
Wed, 12 Oct 2005 19:07:48 +0000 (19:07 +0000)
 - from anonymous submitter

Src/Changes.txt
Src/DirDoc.cpp

index 1177581..c32ef39 100644 (file)
@@ -1,3 +1,8 @@
+2005-10-12 Kimmo
+ PATCH: [ 1323107 ] Patch for crash on save filenames with different cases
+  From anonymous submitter
+  Src: DirDcoc.cpp
+
 2005-10-05 Perry
  PATCH: [ 1242008 ] Update status to binary if open fails because binary
   Follow on for 2nd case
index d82f248..6f09a20 100644 (file)
@@ -462,7 +462,7 @@ POSITION CDirDoc::FindItemFromPaths(LPCTSTR pathLeft, LPCTSTR pathRight)
        SplitFilename(pathRight, &path2, &file2, 0);
 
        // Filenames must be identical
-       if (file1 != file2)
+       if (file1.CompareNoCase(file2) != 0)
                return NULL;
 
        // Path can contain (because of difftools?) '/' and '\'