fixed filesystem traversal.

This commit is contained in:
morkt
2015-09-22 22:39:10 +04:00
parent 6481dee23c
commit f9448e4613
2 changed files with 15 additions and 21 deletions

View File

@@ -685,6 +685,9 @@ namespace GARbro.GUI
}
catch (Exception X)
{
// if VFS.FullPath throws an exception, ViewModel becomes inconsistent at this point
// and should be rebuilt
ViewModel = CreateViewModel (VFS.Top.CurrentDirectory, true);
SetStatusText (X.Message);
return false;
}