diff options
Diffstat (limited to 'engines/composer')
-rw-r--r-- | engines/composer/composer.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/engines/composer/composer.cpp b/engines/composer/composer.cpp index a04f4b650b..d85ec465b5 100644 --- a/engines/composer/composer.cpp +++ b/engines/composer/composer.cpp @@ -355,6 +355,10 @@ Common::String ComposerEngine::mangleFilename(Common::String filename) { filename = filename.c_str() + 1; uint slashesToStrip = _directoriesToStrip; + + if (filename.hasPrefix("..")) + slashesToStrip = 1; + while (slashesToStrip--) { for (uint i = 0; i < filename.size(); i++) { if (filename[i] != '\\' && filename[i] != ':') |