aboutsummaryrefslogtreecommitdiff
path: root/backends
diff options
context:
space:
mode:
authorJohannes Schickel2006-08-28 13:17:36 +0000
committerJohannes Schickel2006-08-28 13:17:36 +0000
commitd9cb390a7b33a80a39b1295a5920e3cd70c408b0 (patch)
tree954dcf177bee8a0bf947e47e618c9c91bcc039b4 /backends
parent13ff1a4dff1fd1de77e199a1b0b9478d9e998fe6 (diff)
downloadscummvm-rg350-d9cb390a7b33a80a39b1295a5920e3cd70c408b0.tar.gz
scummvm-rg350-d9cb390a7b33a80a39b1295a5920e3cd70c408b0.tar.bz2
scummvm-rg350-d9cb390a7b33a80a39b1295a5920e3cd70c408b0.zip
Fixing the Windows FS code to not delete the first character of a node, if it is just with a filename created. (which is not working yet though, but still the first char shouldn't be skipped)
svn-id: r23795
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 aadfdc9d3e..4819d38313 100644
--- a/backends/fs/windows/windows-fs.cpp
+++ b/backends/fs/windows/windows-fs.cpp
@@ -69,6 +69,9 @@ static const char *lastPathComponent(const Common::String &str) {
--cur;
}
+ if (cur == start)
+ return cur;
+
return cur + 1;
}