summaryrefslogtreecommitdiff
path: root/plugins/PluginUpdater
diff options
context:
space:
mode:
authorTobias Weimer <wishmaster51@googlemail.com>2013-11-14 19:36:50 +0000
committerTobias Weimer <wishmaster51@googlemail.com>2013-11-14 19:36:50 +0000
commit4db4db4906537390e5371a83130ffd7d180ac000 (patch)
treec4baa83255f0b0f9df12b486908fc30da0cbff7f /plugins/PluginUpdater
parent701e19be212755ccddcda374bb4ce73fe2039cd7 (diff)
replace dbx_3x with dbx_mmap
git-svn-id: http://svn.miranda-ng.org/main/trunk@6905 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/PluginUpdater')
-rw-r--r--plugins/PluginUpdater/src/DlgUpdate.cpp8
1 files changed, 2 insertions, 6 deletions
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<FILEINFO> *UpdateFiles)