From ac45e290f7550da70039c1d2051d7e6ed31cc7b7 Mon Sep 17 00:00:00 2001 From: Johannes Schickel Date: Mon, 28 Aug 2006 13:34:15 +0000 Subject: Fixing other FS backends to use the bug fixed version of the POSIX lastPathComponent too (also lets the Windows FS use the POSIX version of lastPathComponent too, since it's nicer than the fix I made) svn-id: r23796 --- backends/fs/symbian/symbian-fs.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'backends/fs/symbian') diff --git a/backends/fs/symbian/symbian-fs.cpp b/backends/fs/symbian/symbian-fs.cpp index b8a3e9312d..4dca90e1db 100644 --- a/backends/fs/symbian/symbian-fs.cpp +++ b/backends/fs/symbian/symbian-fs.cpp @@ -62,7 +62,7 @@ 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 != '\\') { + while (cur >= start && *cur != '/') { --cur; } -- cgit v1.2.3