]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/filefn.cpp
moved AdjustToClientAreaOrigin to wxWindowBase, needed worldwide for wxUniv
[wxWidgets.git] / 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);