GT-2585: Fixing bad windows path when project lives in root windows

directory.
This commit is contained in:
Ryan Kurtz 2019-06-11 14:48:21 -04:00
parent 4919d6ec54
commit 398db09cec

View file

@ -120,6 +120,9 @@ public class GhidraURL {
String path = localProjectURL.getPath();
int index = path.lastIndexOf('/');
String dirPath = path.substring(0, index);
if (dirPath.endsWith(":")) {
dirPath += "/";
}
if (dirPath.indexOf(":/") == 2) {
dirPath = dirPath.substring(1);
dirPath = dirPath.replace('/', File.separatorChar);