From 9c1d8d42b63522d52332bd75b41f5734c0d0ba82 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Tue, 9 Jul 2019 20:47:03 +0300 Subject: warning fix --- plugins/PluginUpdater/src/DlgListNew.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'plugins/PluginUpdater/src') diff --git a/plugins/PluginUpdater/src/DlgListNew.cpp b/plugins/PluginUpdater/src/DlgListNew.cpp index 6ed34d3e73..0088c4e983 100644 --- a/plugins/PluginUpdater/src/DlgListNew.cpp +++ b/plugins/PluginUpdater/src/DlgListNew.cpp @@ -392,7 +392,7 @@ static void GetList(void *) for (auto &it : hashes) { wchar_t tszPath[MAX_PATH]; - mir_snwprintf(tszPath, L"%s\\%s", dirname, it->m_name); + mir_snwprintf(tszPath, L"%s\\%s", dirname.get(), it->m_name); if (GetFileAttributes(tszPath) == INVALID_FILE_ATTRIBUTES) { FILEINFO *FileInfo = ServerEntryToFileInfo(*it, baseUrl, tszPath); @@ -474,7 +474,7 @@ static INT_PTR ParseUriService(WPARAM, LPARAM lParam) VARSW dirName(L"%miranda_path%"); wchar_t tszPath[MAX_PATH]; - mir_snwprintf(tszPath, L"%s\\%s", dirName, hash->m_name); + mir_snwprintf(tszPath, L"%s\\%s", dirName.get(), hash->m_name); FILEINFO *fileInfo = ServerEntryToFileInfo(*hash, baseUrl, tszPath); FILELIST *fileList = new FILELIST(1); -- cgit v1.2.3