summaryrefslogtreecommitdiff
path: root/onlineupdate
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2017-06-16 17:29:36 +0200
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2017-06-16 17:33:30 +0200
commit38a91e27f28cc14499f78f0c8bde105b06323916 (patch)
treed3c98eec8a439b62565ac74733f96085f1894b2b /onlineupdate
parenta87e03035f8a6d000785f719e2d327e2f6e6d124 (diff)
updater: fix update file lookup for language pack files
Change-Id: I221c81ff2f0bee7a8643304201722dbbbc114bec
Diffstat (limited to 'onlineupdate')
-rw-r--r--onlineupdate/source/update/updater/updater.cxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/onlineupdate/source/update/updater/updater.cxx b/onlineupdate/source/update/updater/updater.cxx
index 26f0b5df943d..8b3f7bceee8d 100644
--- a/onlineupdate/source/update/updater/updater.cxx
+++ b/onlineupdate/source/update/updater/updater.cxx
@@ -2553,7 +2553,7 @@ ReadMARChannelIDs(const NS_tchar *path, MARChannelStringTable *results)
#endif
static int
-GetUpdateFileNames(std::vector<tstring> fileNames)
+GetUpdateFileNames(std::vector<tstring>& fileNames)
{
NS_tchar fileName[MAXPATHLEN];
NS_tsnprintf(fileName, MAXPATHLEN,
@@ -2572,7 +2572,8 @@ GetUpdateFileNames(std::vector<tstring> fileNames)
while ((entry = NS_treaddir(dir)) != nullptr)
{
if (NS_tstrcmp(entry->d_name, NS_T(".")) &&
- NS_tstrcmp(entry->d_name, NS_T("..")))
+ NS_tstrcmp(entry->d_name, NS_T("..")) &&
+ NS_tstrcmp(entry->d_name, NS_T("update.mar")))
{
if (NS_tstrncmp(entry->d_name, NS_T("update"), 6) == 0)
{