diff options
-rw-r--r-- | onlineupdate/source/update/updater/updater.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/onlineupdate/source/update/updater/updater.cxx b/onlineupdate/source/update/updater/updater.cxx index eb6452a9f6a0..08aa201cb47e 100644 --- a/onlineupdate/source/update/updater/updater.cxx +++ b/onlineupdate/source/update/updater/updater.cxx @@ -2596,8 +2596,8 @@ GetUpdateFileNames(std::vector<tstring>& fileNames) { if (NS_tstrncmp(entry->d_name, NS_T("update"), 6) == 0) { - char *dot = strrchr(entry->d_name, '.'); - if (dot && !strcmp(dot, ".mar")) + NS_tchar *dot = NS_tstrrchr(entry->d_name, NS_T('.')); + if (dot && !NS_tstrcmp(dot, NS_T(".mar"))) { NS_tchar updatePath[MAXPATHLEN]; NS_tsnprintf(updatePath, sizeof(updatePath)/sizeof(updatePath[0]), |