aboutsummaryrefslogtreecommitdiff
path: root/backends
diff options
context:
space:
mode:
Diffstat (limited to 'backends')
-rw-r--r--backends/fs/windows/windows-fs.cpp3
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 += '\\';