aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTravis Howell2008-08-05 11:42:04 +0000
committerTravis Howell2008-08-05 11:42:04 +0000
commita9bef1051ec7471a277a2f4300c7165fc6ace4a9 (patch)
tree6cf4170e5438558ae6340fe152d27e0fb62f0726
parentb89c9c9b89a9ae21a5e0ebcf5db7d0d014062ad4 (diff)
downloadscummvm-rg350-a9bef1051ec7471a277a2f4300c7165fc6ace4a9.tar.gz
scummvm-rg350-a9bef1051ec7471a277a2f4300c7165fc6ace4a9.tar.bz2
scummvm-rg350-a9bef1051ec7471a277a2f4300c7165fc6ace4a9.zip
Remove file attribute check, since getChild() can be called on file path that doesn'r exist.
svn-id: r33633
-rw-r--r--backends/fs/windows/windows-fs.cpp5
1 files changed, 0 insertions, 5 deletions
diff --git a/backends/fs/windows/windows-fs.cpp b/backends/fs/windows/windows-fs.cpp
index ac2f521e21..77530c6073 100644
--- a/backends/fs/windows/windows-fs.cpp
+++ b/backends/fs/windows/windows-fs.cpp
@@ -260,11 +260,6 @@ AbstractFilesystemNode *WindowsFilesystemNode::getChild(const String &n) const {
newPath += '\\';
newPath += n;
- // Check whether the directory actually exists
- DWORD fileAttribs = GetFileAttributes(toUnicode(newPath.c_str()));
- if (fileAttribs == INVALID_FILE_ATTRIBUTES)
- return 0;
-
return new WindowsFilesystemNode(newPath, false);
}