]> git.saurik.com Git - wxWidgets.git/commitdiff
fixed bug with wxPathExists('c:\') yet again
authorVadim Zeitlin <vadim@wxwidgets.org>
Mon, 23 Jul 2001 18:17:28 +0000 (18:17 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Mon, 23 Jul 2001 18:17:28 +0000 (18:17 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@11168 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/filefn.cpp

index 1cfa5825c5edc29942be0c7a9643b5f5f67823e4..b9c16cd304111bccdfdfd23a3f90d069d2d25225 100644 (file)
@@ -1179,7 +1179,7 @@ bool wxPathExists(const wxChar *pszPathName)
     while ( wxEndsWithPathSeparator(strPath) )
     {
         size_t len = strPath.length();
-        if ( len == 1 || strPath[len - 1] == _T(':') )
+        if ( len == 1 || (len == 3 && strPath[len - 2] == _T(':')) )
             break;
 
         strPath.Truncate(len - 1);