X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/2985ad5deecdcb48611ea71ac43e3c2f256c4c08..f35719ef1d3b34fb42ebfab33944ea9cdc4413eb:/src/common/filefn.cpp?ds=sidebyside

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);