diff options
author | Kirill Volinsky <mataes2007@gmail.com> | 2014-10-18 11:21:52 +0000 |
---|---|---|
committer | Kirill Volinsky <mataes2007@gmail.com> | 2014-10-18 11:21:52 +0000 |
commit | 4e322da2d81dbc38a8f39e0fd861fb37f0800ace (patch) | |
tree | 1ed000df22241a70d1d89e32735bc713025f7cba /plugins/PluginUpdater/src/DlgListNew.cpp | |
parent | ade107d192bab45ffb4071612ee74668b93d5b4f (diff) |
fixed temp folder creation
git-svn-id: http://svn.miranda-ng.org/main/trunk@10823 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/PluginUpdater/src/DlgListNew.cpp')
-rw-r--r-- | plugins/PluginUpdater/src/DlgListNew.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/PluginUpdater/src/DlgListNew.cpp b/plugins/PluginUpdater/src/DlgListNew.cpp index f5c921b287..d5ecbb14e9 100644 --- a/plugins/PluginUpdater/src/DlgListNew.cpp +++ b/plugins/PluginUpdater/src/DlgListNew.cpp @@ -50,14 +50,11 @@ static void ApplyDownloads(void *param) AutoHandle pipe(hPipe);
HWND hwndList = GetDlgItem(hDlg, IDC_LIST_UPDATES);
OBJLIST<FILEINFO> &todo = *(OBJLIST<FILEINFO> *)GetWindowLongPtr(hDlg, GWLP_USERDATA);
- TCHAR tszFileTemp[MAX_PATH], tszFileBack[MAX_PATH];
+ TCHAR tszFileBack[MAX_PATH];
mir_sntprintf(tszFileBack, SIZEOF(tszFileBack), _T("%s\\Backups"), tszRoot);
SafeCreateDirectory(tszFileBack);
- mir_sntprintf(tszFileTemp, SIZEOF(tszFileTemp), _T("%s\\Temp"), tszRoot);
- SafeCreateDirectory(tszFileTemp);
-
VARST tszMirandaPath(_T("%miranda_path%"));
HANDLE nlc = NULL;
@@ -351,6 +348,9 @@ static void GetList(void *) }
FILELIST *UpdateFiles = new FILELIST(20);
+ TCHAR tszFileTemp[MAX_PATH];
+ mir_sntprintf(tszFileTemp, SIZEOF(tszFileTemp), _T("%s\\Temp"), tszRoot);
+ SafeCreateDirectory(tszFileTemp);
VARST dirname(_T("%miranda_path%"));
for (int i=0; i < hashes.getCount(); i++) {
|