From a2815e07fd20b5ac71c85df4a3707174a05ab628 Mon Sep 17 00:00:00 2001 From: Kirill Volinsky Date: Fri, 15 Apr 2016 17:41:13 +0000 Subject: PluginUpdater: platform change fix git-svn-id: http://svn.miranda-ng.org/main/trunk@16665 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/PluginUpdater/src/DlgUpdate.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'plugins/PluginUpdater/src') diff --git a/plugins/PluginUpdater/src/DlgUpdate.cpp b/plugins/PluginUpdater/src/DlgUpdate.cpp index ad291a44ae..701aed3927 100644 --- a/plugins/PluginUpdater/src/DlgUpdate.cpp +++ b/plugins/PluginUpdater/src/DlgUpdate.cpp @@ -643,7 +643,10 @@ static int ScanFolder(const TCHAR *tszFolder, size_t cbBaseLen, const TCHAR *tsz TCHAR *ptszUrl; int MyCRC; - mir_sntprintf(tszBuf, _T("%s\\%s"), tszFolder, tszNewName); + if (opts.bChangePlatform) + mir_sntprintf(tszBuf, _T("%s\\%s"), tszFolder, tszNewName); + else + mir_sntprintf(tszBuf, _T("%s\\%s"), tszFolder, ffd.cFileName); bool bDeleteOnly = (tszNewName[0] == 0); // this file is not marked for deletion -- cgit v1.2.3