aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Tkachev2019-09-16 13:58:51 +0700
committerEugene Sandulenko2019-09-16 13:15:23 +0200
commitd488e1dd55942e7b722b7e573ace57d65c915b49 (patch)
tree6068ce4e22b3e37a6359ec1c1ad4a5271db58ef8
parent91347f29e5bf32387147312ba441ce76a027e836 (diff)
downloadscummvm-rg350-d488e1dd55942e7b722b7e573ace57d65c915b49.tar.gz
scummvm-rg350-d488e1dd55942e7b722b7e573ace57d65c915b49.tar.bz2
scummvm-rg350-d488e1dd55942e7b722b7e573ace57d65c915b49.zip
Revert "WIN32: Fix getting the parent directory of non-existant file nodes"
-rw-r--r--backends/fs/windows/windows-fs.cpp2
1 files changed, 2 insertions, 0 deletions
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;