From: Kimmo Varis Date: Wed, 12 Oct 2005 19:07:48 +0000 (+0000) Subject: PATCH: [ 1323107 ] Patch for crash on save filenames with different cases X-Git-Tag: 2.16.5~5625 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=e88f36ca9257e945cc1dd595ad46b0b63da970be;p=winmerge-jp%2Fwinmerge-jp.git PATCH: [ 1323107 ] Patch for crash on save filenames with different cases - from anonymous submitter --- diff --git a/Src/Changes.txt b/Src/Changes.txt index 117758118..c32ef3979 100644 --- a/Src/Changes.txt +++ b/Src/Changes.txt @@ -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 diff --git a/Src/DirDoc.cpp b/Src/DirDoc.cpp index d82f24808..6f09a20e7 100644 --- a/Src/DirDoc.cpp +++ b/Src/DirDoc.cpp @@ -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 '\'