Fix crash if selecting / on linux path browser

This commit is contained in:
baldurk
2016-08-29 16:13:29 +02:00
parent c05380cdf5
commit bf210bbe23
@@ -292,7 +292,7 @@ namespace renderdocui.Windows.Dialogs
// normalise input
dir = dir.Replace('\\', '/');
if (dir[dir.Length - 1] == '/')
if (dir.Length > 0 && dir[dir.Length - 1] == '/')
dir = dir.Substring(0, dir.Length - 1);
if (NTPaths)