diff options
author | Max Horn | 2006-04-04 21:02:44 +0000 |
---|---|---|
committer | Max Horn | 2006-04-04 21:02:44 +0000 |
commit | ca6d34522039aa7d8aa8da1d8f4c30f4ad9aecc4 (patch) | |
tree | 685bd0d67cfe8a15784589243685860ab17d8cfd /backends | |
parent | e366ed75da9776553c780cf09ca1a64d3de41a79 (diff) | |
download | scummvm-rg350-ca6d34522039aa7d8aa8da1d8f4c30f4ad9aecc4.tar.gz scummvm-rg350-ca6d34522039aa7d8aa8da1d8f4c30f4ad9aecc4.tar.bz2 scummvm-rg350-ca6d34522039aa7d8aa8da1d8f4c30f4ad9aecc4.zip |
Possible bug in the Symbian FS code?
svn-id: r21599
Diffstat (limited to 'backends')
-rw-r--r-- | backends/fs/symbian/symbian-fs.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/backends/fs/symbian/symbian-fs.cpp b/backends/fs/symbian/symbian-fs.cpp index 438e574f05..99297b6a49 100644 --- a/backends/fs/symbian/symbian-fs.cpp +++ b/backends/fs/symbian/symbian-fs.cpp @@ -58,12 +58,12 @@ public: static const char *lastPathComponent(const Common::String &str) { const char *start = str.c_str(); const char *cur = start + str.size() - 2; - + while (cur > start && *cur != '\\') { --cur; } - - return cur+1; + + return cur + 1; } AbstractFilesystemNode *FilesystemNode::getRoot() { @@ -88,6 +88,9 @@ SymbianFilesystemNode::SymbianFilesystemNode(const String &path) { _isPseudoRoot = true; _path = path; const char *dsplName = NULL, *pos = path.c_str(); + // FIXME -- why is this code scanning for a slash '/' when the rest of + // the code in this file uses backslashes '\' ? + // TODO: Use lastPathComponent here. while (*pos) if (*pos++ == '/') dsplName = pos; |