aboutsummaryrefslogtreecommitdiff
path: root/backends
diff options
context:
space:
mode:
Diffstat (limited to 'backends')
-rw-r--r--backends/fs/windows/windows-fs.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/backends/fs/windows/windows-fs.cpp b/backends/fs/windows/windows-fs.cpp
index f395974544..56e77d2dfa 100644
--- a/backends/fs/windows/windows-fs.cpp
+++ b/backends/fs/windows/windows-fs.cpp
@@ -121,7 +121,9 @@ void WindowsFilesystemNode::addFile(AbstractFSList &list, ListMode mode, const c
}
AbstractFilesystemNode *AbstractFilesystemNode::getCurrentDirectory() {
- return new WindowsFilesystemNode((const char *)".");
+ char path[MAX_PATH];
+ GetCurrentDirectory(MAX_PATH, path);
+ return new WindowsFilesystemNode(path);
}
AbstractFilesystemNode *AbstractFilesystemNode::getRoot() {