aboutsummaryrefslogtreecommitdiff
path: root/backends/fs
diff options
context:
space:
mode:
authorNicola Mettifogo2008-07-28 02:56:17 +0000
committerNicola Mettifogo2008-07-28 02:56:17 +0000
commitb0e2cd5967442f1b7cb1cea1df6dcea097bc6f73 (patch)
tree68ccac36b6aa01f30313f488c173805c4cc53aa3 /backends/fs
parent06a45c49c79056ef6ae81cc9f846ebddf07d03bc (diff)
downloadscummvm-rg350-b0e2cd5967442f1b7cb1cea1df6dcea097bc6f73.tar.gz
scummvm-rg350-b0e2cd5967442f1b7cb1cea1df6dcea097bc6f73.tar.bz2
scummvm-rg350-b0e2cd5967442f1b7cb1cea1df6dcea097bc6f73.zip
Fixed constructor for WindowsFilesystemNode. On Windows, trailing slashes can be added only to directory names.
svn-id: r33350
Diffstat (limited to 'backends/fs')
-rw-r--r--backends/fs/windows/windows-fs.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/backends/fs/windows/windows-fs.cpp b/backends/fs/windows/windows-fs.cpp
index cbb93e8cd6..ac2f521e21 100644
--- a/backends/fs/windows/windows-fs.cpp
+++ b/backends/fs/windows/windows-fs.cpp
@@ -245,7 +245,7 @@ WindowsFilesystemNode::WindowsFilesystemNode(const String &p, const bool current
_isDirectory = ((fileAttribs & FILE_ATTRIBUTE_DIRECTORY) != 0);
_isValid = true;
// Add a trailing slash, if necessary.
- if (_path.lastChar() != '\\') {
+ if (_isDirectory && _path.lastChar() != '\\') {
_path += '\\';
}
}