From: Vadim Zeitlin Date: Mon, 23 Jul 2001 18:17:28 +0000 (+0000) Subject: fixed bug with wxPathExists('c:\') yet again X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/cc4a1ce1f58b46cb4c4d6a1319192062140b9373 fixed bug with wxPathExists('c:\') yet again git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@11168 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/common/filefn.cpp b/src/common/filefn.cpp index 1cfa5825c5..b9c16cd304 100644 --- a/src/common/filefn.cpp +++ b/src/common/filefn.cpp @@ -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);