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