Follow-up of 436a454b2e
- Fixed syntax error
This commit is contained in:
parent
6be84d529d
commit
8c133c01ee
@ -243,7 +243,7 @@ boost::filesystem::path AppUpdater::priv::download_file(const DownloadAppData& d
|
|||||||
tmp_path += format(".%1%%2%", get_current_pid(), ".download");
|
tmp_path += format(".%1%%2%", get_current_pid(), ".download");
|
||||||
try
|
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.write(body.c_str(), body.size());
|
||||||
file.close();
|
file.close();
|
||||||
boost::filesystem::rename(tmp_path, dest_path);
|
boost::filesystem::rename(tmp_path, dest_path);
|
||||||
|
Loading…
Reference in New Issue
Block a user