aboutsummaryrefslogtreecommitdiff
path: root/backends/fs/windows
diff options
context:
space:
mode:
authorMax Horn2002-11-19 13:42:19 +0000
committerMax Horn2002-11-19 13:42:19 +0000
commit4e7575f9db34ec84c9c95d98ec883fc5334c0158 (patch)
tree1f0b7dbf1564f98471cd747c9a910566755b5bb3 /backends/fs/windows
parentab92742c6731e129985151aa105d72887e6d0176 (diff)
downloadscummvm-rg350-4e7575f9db34ec84c9c95d98ec883fc5334c0158.tar.gz
scummvm-rg350-4e7575f9db34ec84c9c95d98ec883fc5334c0158.tar.bz2
scummvm-rg350-4e7575f9db34ec84c9c95d98ec883fc5334c0158.zip
fixed parent() method, added a FIXME
svn-id: r5618
Diffstat (limited to 'backends/fs/windows')
-rw-r--r--backends/fs/windows/windows-fs.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/backends/fs/windows/windows-fs.cpp b/backends/fs/windows/windows-fs.cpp
index 0e4d3d60f4..1481d3c6a8 100644
--- a/backends/fs/windows/windows-fs.cpp
+++ b/backends/fs/windows/windows-fs.cpp
@@ -190,8 +190,8 @@ FSList *WindowsFilesystemNode::listDir(ListMode mode) const {
}
FilesystemNode *WindowsFilesystemNode::parent() const {
- assert(_isDirectory);
- return _parentNode;
+ assert(_isDirectory); // FIXME - Why this restriction? Files have parent dirs, too!
+ return _parentNode.clone();
}
#endif // defined(_MSC_VER) || defined(__MINGW32__)