mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-06 01:50:38 +00:00
Fix crash if selecting / on linux path browser
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user