diff options
Diffstat (limited to 'backends')
-rw-r--r-- | backends/fs/windows/windows-fs.cpp | 2 |
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); |