diff options
author | Travis Howell | 2008-11-17 11:09:57 +0000 |
---|---|---|
committer | Travis Howell | 2008-11-17 11:09:57 +0000 |
commit | df9a1baadcae2f0d31b30f03bf96db9610f740ca (patch) | |
tree | a256fdd947f814f8c5b7357e39aa1cc0a7257ba8 /backends | |
parent | 1067a2ec7786a61ad9cc1f69ec1d368a53ed75fa (diff) | |
download | scummvm-rg350-df9a1baadcae2f0d31b30f03bf96db9610f740ca.tar.gz scummvm-rg350-df9a1baadcae2f0d31b30f03bf96db9610f740ca.tar.bz2 scummvm-rg350-df9a1baadcae2f0d31b30f03bf96db9610f740ca.zip |
Fix regressions in HE games, when slashes are used in filenames for file opcodes.
svn-id: r35105
Diffstat (limited to 'backends')
-rw-r--r-- | backends/fs/windows/windows-fs.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/backends/fs/windows/windows-fs.cpp b/backends/fs/windows/windows-fs.cpp index 7f5c85ee7d..0b552e275c 100644 --- a/backends/fs/windows/windows-fs.cpp +++ b/backends/fs/windows/windows-fs.cpp @@ -226,6 +226,9 @@ WindowsFilesystemNode::WindowsFilesystemNode(const Common::String &p, const bool AbstractFSNode *WindowsFilesystemNode::getChild(const Common::String &n) const { assert(_isDirectory); + // Make sure the string contains no slashes + assert(!n.contains('/')); + Common::String newPath(_path); if (_path.lastChar() != '\\') newPath += '\\'; |