aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJens Bäckman <jens.backman@gmail.com>2014-05-14 19:49:59 +0200
committerJens Bäckman <jens.backman@gmail.com>2014-05-14 19:49:59 +0200
commitb75b33699d55d7e41ce71ce9bb9f8f9fb1350a40 (patch)
tree3c468613526a6f24c852636e7a8b0cce47b14c24
parent4136f3c974d2b08e1e9098fe9ab410db9a6aebd4 (diff)
Tools/MapExtractor: Don't start filenames with a backslash
-rw-r--r--src/tools/map_extractor/System.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tools/map_extractor/System.cpp b/src/tools/map_extractor/System.cpp
index 9eafb68ca15..a4de6f92a8d 100644
--- a/src/tools/map_extractor/System.cpp
+++ b/src/tools/map_extractor/System.cpp
@@ -1114,7 +1114,7 @@ void ExtractDBCFiles(int l, bool basicLocale)
}
filename = foundFile.cFileName;
- filename = outputPath + filename.substr(filename.rfind('\\'));
+ filename = outputPath + filename.substr(filename.rfind('\\') + 1);
if (FileExists(filename.c_str()))
continue;
@@ -1161,7 +1161,7 @@ void ExtractDB2Files(int l, bool basicLocale)
}
filename = foundFile.cFileName;
- filename = outputPath + filename.substr(filename.rfind('\\'));
+ filename = outputPath + filename.substr(filename.rfind('\\') + 1);
if (ExtractFile(dbcFile, filename.c_str()))
++count;