OSDN Git Service

BUG: [ 693820 ] Typed path failed to compare
authorKimmo Varis <kimmov@gmail.com>
Thu, 27 Feb 2003 12:58:41 +0000 (12:58 +0000)
committerKimmo Varis <kimmov@gmail.com>
Thu, 27 Feb 2003 12:58:41 +0000 (12:58 +0000)
Src/OpenDlg.cpp
Src/readme.txt

index 1f5854b..52682c4 100644 (file)
@@ -337,6 +337,9 @@ BOOL COpenDlg::IsFileOk(CString & strFile, BOOL *pbDir /*= NULL*/)
 
 void COpenDlg::RemoveTrailingSlash(CString & s)
 {
+       // Do not remove slash from "X:\"
+       if (s[s.GetLength()-2] == _T(':'))
+               return;
        while (s.Right(1) == _T('\\') || s.Right(1) == _T('/'))
-               s = s.Left(s.GetLength()-1);
+               s.Delete(s.GetLength()-1);
 }
index b326524..6f05026 100644 (file)
@@ -1,3 +1,7 @@
+2003-02-27 Kimmo
+ BUG: [ 693820 ] Typed path failed to compare
+  WinMerge: OpenDlg.cpp
+
 2003-02-26 Kimmo
  BUG: [ 683753 ] Rescan is not prompting to save dirty
       current file