downloader - binary write on resume

This commit is contained in:
David Kocik 2023-01-16 13:30:09 +01:00
parent dc2a87cabf
commit 21c8cefef2

View File

@ -129,7 +129,7 @@ void FileGet::priv::get_perform()
if (m_written == 0)
file = fopen(temp_path_wstring.c_str(), "wb");
else
file = fopen(temp_path_wstring.c_str(), "a");
file = fopen(temp_path_wstring.c_str(), "ab");
assert(file != NULL);