diff options
-rw-r--r-- | backends/fs/windows/windows-fs-factory.cpp | 2 | ||||
-rw-r--r-- | backends/fs/windows/windows-fs.cpp | 6 |
2 files changed, 5 insertions, 3 deletions
diff --git a/backends/fs/windows/windows-fs-factory.cpp b/backends/fs/windows/windows-fs-factory.cpp index 76b62e5deb..3d7a3cc672 100644 --- a/backends/fs/windows/windows-fs-factory.cpp +++ b/backends/fs/windows/windows-fs-factory.cpp @@ -8,7 +8,7 @@ AbstractFilesystemNode *WindowsFilesystemFactory::makeRootFileNode() const { } AbstractFilesystemNode *WindowsFilesystemFactory::makeCurrentDirectoryFileNode() const { - return new WindowsFilesystemNode(NULL, true); + return new WindowsFilesystemNode("", true); } AbstractFilesystemNode *WindowsFilesystemFactory::makeFileNodePath(const String &path) const { diff --git a/backends/fs/windows/windows-fs.cpp b/backends/fs/windows/windows-fs.cpp index 5a9e1c65b6..995264f110 100644 --- a/backends/fs/windows/windows-fs.cpp +++ b/backends/fs/windows/windows-fs.cpp @@ -82,7 +82,7 @@ public: virtual bool isWritable() const { return _access(_path.c_str(), W_OK) == 0; } virtual AbstractFilesystemNode *getChild(const String &n) const; - virtual bool getChildren(AbstractFSList &list, ListMode mode) const; + virtual bool getChildren(AbstractFSList &list, ListMode mode, bool hidden) const; virtual AbstractFilesystemNode *getParent() const; private: @@ -246,9 +246,11 @@ AbstractFilesystemNode *WindowsFilesystemNode::getChild(const String &n) const { return new WindowsFilesystemNode(newPath, false); } -bool WindowsFilesystemNode::getChildren(AbstractFSList &myList, ListMode mode) const { +bool WindowsFilesystemNode::getChildren(AbstractFSList &myList, ListMode mode, bool hidden) const { assert(_isDirectory); + //TODO: honor the hidden flag + if (_isPseudoRoot) { #ifndef _WIN32_WCE // Drives enumeration |