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:
parent
f925f24de8
commit
cc4a1ce1f5
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user