fixed bug with wxPathExists('c:\') yet again
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@11168 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -1179,7 +1179,7 @@ bool wxPathExists(const wxChar *pszPathName)
|
|||||||
while ( wxEndsWithPathSeparator(strPath) )
|
while ( wxEndsWithPathSeparator(strPath) )
|
||||||
{
|
{
|
||||||
size_t len = strPath.length();
|
size_t len = strPath.length();
|
||||||
if ( len == 1 || strPath[len - 1] == _T(':') )
|
if ( len == 1 || (len == 3 && strPath[len - 2] == _T(':')) )
|
||||||
break;
|
break;
|
||||||
|
|
||||||
strPath.Truncate(len - 1);
|
strPath.Truncate(len - 1);
|
||||||
|
Reference in New Issue
Block a user