X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/2985ad5deecdcb48611ea71ac43e3c2f256c4c08..b838cfc9151aea38402ad2b1ba5d2f97cf94e973:/src/common/filefn.cpp 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);