fix crash

This commit is contained in:
Glenn Maynard
2003-12-11 07:15:06 +00:00
parent 9723ca794b
commit 65248e01d7
+1 -1
View File
@@ -37,7 +37,7 @@ void CollapsePath( CString &sPath )
for( unsigned i=0; i<as.size(); i++ )
{
if( as[i] == ".." )
if( as[i] == ".." && i != 0 )
{
as.erase( as.begin()+i-1 );
as.erase( as.begin()+i-1 );