From 84c99c82427f961fef4ffadd9809383a9e70b761 Mon Sep 17 00:00:00 2001 From: Travis Howell Date: Wed, 3 May 2006 21:53:38 +0000 Subject: Revert the last change, since AbstractFilesystemNode::child() handles files and directories svn-id: r22319 --- backends/fs/windows/windows-fs.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- cgit v1.2.3