OSDN Git Service

PATCH: [ 1206647 ] Add trailing slash to MRU paths
authorKimmo Varis <kimmov@gmail.com>
Mon, 23 May 2005 16:51:58 +0000 (16:51 +0000)
committerKimmo Varis <kimmov@gmail.com>
Mon, 23 May 2005 16:51:58 +0000 (16:51 +0000)
Src/MainFrm.cpp
Src/readme.txt

index 628c715..cd3124d 100644 (file)
@@ -1227,6 +1227,15 @@ BOOL CMainFrame::DoFileOpen(LPCTSTR pszLeft /*=NULL*/, LPCTSTR pszRight /*=NULL*
        }
        else
        {
+               // Add trailing '\' for directories if its missing
+               if (pathsType == IS_EXISTING_DIR)
+               {
+                       if (!paths_EndsWithSlash(strLeft))
+                               strLeft += '\\';
+                       if (!paths_EndsWithSlash(strRight))
+                               strRight += '\\';
+               }
+
                //save the MRU left and right files.
                if (!(dwLeftFlags & FFILEOPEN_NOMRU))
                        addToMru(pszLeft, _T("Files\\Left"));
index 84f6233..b00c3cd 100644 (file)
@@ -1,5 +1,9 @@
+2005-02-23 Kimmo
+ PATCH: [ 1206647 ] Add trailing slash to MRU paths
+  Src: MainFrm.cpp
+
 2005-05-21 Perry
- PATCH [ 1206085 ] Translate new options dialog to German
+ PATCH: [ 1206085 ] Translate new options dialog to German
   Src/Languages/German: MergeGerman.rc
 
 2005-05-20 Perry