diff options
author | Jens Bäckman <jens.backman@gmail.com> | 2014-05-14 19:49:59 +0200 |
---|---|---|
committer | Jens Bäckman <jens.backman@gmail.com> | 2014-05-14 19:49:59 +0200 |
commit | b75b33699d55d7e41ce71ce9bb9f8f9fb1350a40 (patch) | |
tree | 3c468613526a6f24c852636e7a8b0cce47b14c24 | |
parent | 4136f3c974d2b08e1e9098fe9ab410db9a6aebd4 (diff) |
Tools/MapExtractor: Don't start filenames with a backslash
-rw-r--r-- | src/tools/map_extractor/System.cpp | 4 |
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; |