Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoreutarass2010-04-02 20:36:13 -0400
committereutarass2010-04-02 20:36:13 -0400
commit2c069c6963b1979006153499bbd8a2580ae45c4e (patch)
tree1682f28744b48a6e6e33de266cd9665a93b523ae /plugins/org.eclipse.tm.tcf.debug
parent7b7defd6df9f7667c2be3dbe9383555adf68eab7 (diff)
downloadorg.eclipse.tcf-2c069c6963b1979006153499bbd8a2580ae45c4e.tar.gz
org.eclipse.tcf-2c069c6963b1979006153499bbd8a2580ae45c4e.tar.xz
org.eclipse.tcf-2c069c6963b1979006153499bbd8a2580ae45c4e.zip
TCF Agent: changed code for FileSystem.roots command on Windows to use GetLogicalDrives() to be able to report drives without media
Diffstat (limited to 'plugins/org.eclipse.tm.tcf.debug')
-rw-r--r--plugins/org.eclipse.tm.tcf.debug/src/org/eclipse/tm/internal/tcf/debug/tests/TestFileSystem.java10
1 files changed, 8 insertions, 2 deletions
diff --git a/plugins/org.eclipse.tm.tcf.debug/src/org/eclipse/tm/internal/tcf/debug/tests/TestFileSystem.java b/plugins/org.eclipse.tm.tcf.debug/src/org/eclipse/tm/internal/tcf/debug/tests/TestFileSystem.java
index 7f2d5cbb0..1adfd8835 100644
--- a/plugins/org.eclipse.tm.tcf.debug/src/org/eclipse/tm/internal/tcf/debug/tests/TestFileSystem.java
+++ b/plugins/org.eclipse.tm.tcf.debug/src/org/eclipse/tm/internal/tcf/debug/tests/TestFileSystem.java
@@ -75,8 +75,14 @@ class TestFileSystem implements ITCFTest, IFileSystem.DoneStat,
exit(new Exception("Invalid FileSysrem.roots responce: empty roots array"));
}
else {
- root = entries[0].filename;
- files.opendir(root, this);
+ for (DirEntry d : entries) {
+ if (d.filename.startsWith("A:")) continue;
+ if (d.filename.startsWith("B:")) continue;
+ root = d.filename;
+ break;
+ }
+ if (root == null) exit(new Exception("Invalid FileSysrem.roots responce: no suitable root"));
+ else files.opendir(root, this);
}
}

Back to the top