From 4db4db4906537390e5371a83130ffd7d180ac000 Mon Sep 17 00:00:00 2001 From: Tobias Weimer Date: Thu, 14 Nov 2013 19:36:50 +0000 Subject: replace dbx_3x with dbx_mmap git-svn-id: http://svn.miranda-ng.org/main/trunk@6905 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/PluginUpdater/src/DlgUpdate.cpp | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'plugins/PluginUpdater/src') diff --git a/plugins/PluginUpdater/src/DlgUpdate.cpp b/plugins/PluginUpdater/src/DlgUpdate.cpp index 1bc97ba68d..b873750d61 100644 --- a/plugins/PluginUpdater/src/DlgUpdate.cpp +++ b/plugins/PluginUpdater/src/DlgUpdate.cpp @@ -341,6 +341,7 @@ static renameTable[] = { _T("ttnotify.dll"), _T("Plugins\\tooltipnotify.dll") }, { _T("newstatusnotify.dll"), _T("Plugins\\newxstatusnotify.dll") }, { _T("rss.dll"), _T("Plugins\\newsaggregator.dll") }, + { _T("dbx_3x.dll"), _T("Plugins\\dbx_mmap.dll") }, { _T("proto_newsaggr.dll"), _T("Icons\\proto_newsaggregator.dll") }, { _T("clienticons_general.dll"), _T("Icons\\fp_icons.dll") }, @@ -402,13 +403,8 @@ static bool CheckFileRename(const TCHAR *ptszOldName, TCHAR *pNewName) static bool isValidExtension(const TCHAR *ptszFileName) { const TCHAR *pExt = _tcsrchr(ptszFileName, '.'); - if (pExt == NULL) - return false; - if ( !_tcsicmp(pExt, _T(".dll"))) return true; - if ( !_tcsicmp(pExt, _T(".exe"))) return true; - if ( !_tcsicmp(pExt, _T(".txt"))) return true; - return false; + return (pExt != NULL) && (!_tcsicmp(pExt, _T(".dll")) || !_tcsicmp(pExt, _T(".exe")) || !_tcsicmp(pExt, _T(".txt"))); } static int ScanFolder(const TCHAR *tszFolder, size_t cbBaseLen, int level, const TCHAR *tszBaseUrl, SERVLIST& hashes, OBJLIST *UpdateFiles) -- cgit v1.2.3