summaryrefslogtreecommitdiffstats
path: root/onlineupdate/source
diff options
context:
space:
mode:
Diffstat (limited to 'onlineupdate/source')
-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)
{