aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAokromes <Aokromes@users.noreply.github.com>2014-05-18 01:05:52 +0200
committerAokromes <Aokromes@users.noreply.github.com>2014-05-18 01:05:52 +0200
commit71fd7c11c149f2369e67926636e30b71cedac3f8 (patch)
treeb8734915d4a8c829d2e63ec00505712200b4956c /src
parent1705bfce2cfe27a7beb80494c3031d61e519822a (diff)
parentb75b33699d55d7e41ce71ce9bb9f8f9fb1350a40 (diff)
Merge pull request #12064 from czw/catafix
[4.3.4] Fix bogus filenames generated by the map extractor
Diffstat (limited to 'src')
-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;