Kaydet (Commit) 38a91e27 authored tarafından Markus Mohrhard's avatar Markus Mohrhard

updater: fix update file lookup for language pack files

Change-Id: I221c81ff2f0bee7a8643304201722dbbbc114bec
üst a87e0303
...@@ -2553,7 +2553,7 @@ ReadMARChannelIDs(const NS_tchar *path, MARChannelStringTable *results) ...@@ -2553,7 +2553,7 @@ ReadMARChannelIDs(const NS_tchar *path, MARChannelStringTable *results)
#endif #endif
static int static int
GetUpdateFileNames(std::vector<tstring> fileNames) GetUpdateFileNames(std::vector<tstring>& fileNames)
{ {
NS_tchar fileName[MAXPATHLEN]; NS_tchar fileName[MAXPATHLEN];
NS_tsnprintf(fileName, MAXPATHLEN, NS_tsnprintf(fileName, MAXPATHLEN,
...@@ -2572,7 +2572,8 @@ GetUpdateFileNames(std::vector<tstring> fileNames) ...@@ -2572,7 +2572,8 @@ GetUpdateFileNames(std::vector<tstring> fileNames)
while ((entry = NS_treaddir(dir)) != nullptr) while ((entry = NS_treaddir(dir)) != nullptr)
{ {
if (NS_tstrcmp(entry->d_name, NS_T(".")) && 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) if (NS_tstrncmp(entry->d_name, NS_T("update"), 6) == 0)
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment