Follow-up of 436a454b2e - Fixed syntax error

This commit is contained in:
enricoturri1966 2022-05-10 09:07:12 +02:00
parent 6be84d529d
commit 8c133c01ee

View File

@ -243,7 +243,7 @@ boost::filesystem::path AppUpdater::priv::download_file(const DownloadAppData& d
tmp_path += format(".%1%%2%", get_current_pid(), ".download");
try
{
boost::nowide::fstream file(tmp_path, std::ios::out | std::ios::binary | std::ios::trunc);
boost::nowide::fstream file(tmp_path.string(), std::ios::out | std::ios::binary | std::ios::trunc);
file.write(body.c_str(), body.size());
file.close();
boost::filesystem::rename(tmp_path, dest_path);