aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--backends/fs/windows/windows-fs.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/backends/fs/windows/windows-fs.cpp b/backends/fs/windows/windows-fs.cpp
index 3ce0548d6c..2ab0d24797 100644
--- a/backends/fs/windows/windows-fs.cpp
+++ b/backends/fs/windows/windows-fs.cpp
@@ -150,9 +150,9 @@ WindowsFilesystemNode::WindowsFilesystemNode(const String &p) {
_displayName = String(str + offset, len);
// Check whether it is a directory, and whether the file actually exists
- DWORD fileAttribs = GetFileAttributes(_path.c_str());
+ DWORD fileAttribs = GetFileAttributes(toUnicode((char *)_path.c_str()));
- if (fileAttribs == INVALID_FILE_ATTRIBUTES) {
+ if (fileAttribs == 0xffffffff) {
_isValid = false;
_isDirectory = false;
} else {