aboutsummaryrefslogtreecommitdiff
path: root/backends
diff options
context:
space:
mode:
authorNicolas Bacca2002-11-20 08:04:08 +0000
committerNicolas Bacca2002-11-20 08:04:08 +0000
commite5d6c14b66343d0f2e9b2129896b95e6603ac9b9 (patch)
tree19c987fa43431c6572e1f3f3c75af6def888a4a7 /backends
parent9162f9cc649614e77caed0f8be11ee11fb66a5a7 (diff)
downloadscummvm-rg350-e5d6c14b66343d0f2e9b2129896b95e6603ac9b9.tar.gz
scummvm-rg350-e5d6c14b66343d0f2e9b2129896b95e6603ac9b9.tar.bz2
scummvm-rg350-e5d6c14b66343d0f2e9b2129896b95e6603ac9b9.zip
Fix parent, take 2 (thanks Kirben)
svn-id: r5632
Diffstat (limited to 'backends')
-rw-r--r--backends/fs/windows/windows-fs.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/backends/fs/windows/windows-fs.cpp b/backends/fs/windows/windows-fs.cpp
index 8b476ccda1..e646d395a0 100644
--- a/backends/fs/windows/windows-fs.cpp
+++ b/backends/fs/windows/windows-fs.cpp
@@ -199,7 +199,7 @@ const char *lastPathComponent(const ScummVM::String &str) {
FilesystemNode *WindowsFilesystemNode::parent() const {
assert(_isValid || _isPseudoRoot);
WindowsFilesystemNode *p = new WindowsFilesystemNode();
- if (!_isPseudoRoot) {
+ if (!_isPseudoRoot && _path.size() > 3) {
const char *start = _path.c_str();
const char *end = lastPathComponent(_path);