diff options
Diffstat (limited to 'backends/fs/windows')
-rw-r--r-- | backends/fs/windows/windows-fs.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/backends/fs/windows/windows-fs.cpp b/backends/fs/windows/windows-fs.cpp index 250953b064..13ed68878c 100644 --- a/backends/fs/windows/windows-fs.cpp +++ b/backends/fs/windows/windows-fs.cpp @@ -237,7 +237,7 @@ AbstractFilesystemNode *WindowsFilesystemNode::child(const String &name) const { // Check whether the directory actually exists DWORD fileAttribs = GetFileAttributes(toUnicode(newPath.c_str())); - if (fileAttribs != FILE_ATTRIBUTE_DIRECTORY || fileAttribs == INVALID_FILE_ATTRIBUTES) + if (fileAttribs == INVALID_FILE_ATTRIBUTES) return 0; WindowsFilesystemNode *p = new WindowsFilesystemNode(newPath); |