From d488e1dd55942e7b722b7e573ace57d65c915b49 Mon Sep 17 00:00:00 2001 From: Alexander Tkachev Date: Mon, 16 Sep 2019 13:58:51 +0700 Subject: Revert "WIN32: Fix getting the parent directory of non-existant file nodes" --- backends/fs/windows/windows-fs.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/backends/fs/windows/windows-fs.cpp b/backends/fs/windows/windows-fs.cpp index cc778d2df2..e69e72a746 100644 --- a/backends/fs/windows/windows-fs.cpp +++ b/backends/fs/windows/windows-fs.cpp @@ -220,6 +220,8 @@ bool WindowsFilesystemNode::getChildren(AbstractFSList &myList, ListMode mode, b } AbstractFSNode *WindowsFilesystemNode::getParent() const { + assert(_isValid || _isPseudoRoot); + if (_isPseudoRoot) return 0; -- cgit v1.2.3