From 4e7575f9db34ec84c9c95d98ec883fc5334c0158 Mon Sep 17 00:00:00 2001 From: Max Horn Date: Tue, 19 Nov 2002 13:42:19 +0000 Subject: fixed parent() method, added a FIXME svn-id: r5618 --- backends/fs/windows/windows-fs.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'backends') 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__) -- cgit v1.2.3