diff options
author | Kirill Volinsky <mataes2007@gmail.com> | 2016-04-15 17:41:13 +0000 |
---|---|---|
committer | Kirill Volinsky <mataes2007@gmail.com> | 2016-04-15 17:41:13 +0000 |
commit | a2815e07fd20b5ac71c85df4a3707174a05ab628 (patch) | |
tree | 6b64f3982df592ff03c75de4fadb83c44cb46917 /plugins/PluginUpdater | |
parent | ebc1d2c258ce75596fbed1d62023d1c3c9bf93e5 (diff) |
PluginUpdater: platform change fix
git-svn-id: http://svn.miranda-ng.org/main/trunk@16665 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/PluginUpdater')
-rw-r--r-- | plugins/PluginUpdater/src/DlgUpdate.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
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
|