Merge pull request #9 from c4games/master

Sync to primary
This commit is contained in:
RH 2021-04-26 13:16:44 +10:00 committed by GitHub
commit f54637b0b6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 2 deletions

View File

@ -820,8 +820,7 @@ void DownloaderCURL::_onDownloadFinished(TaskWrapper&& wrapper, int checkState)
if (checkState & kCheckSumStateSucceed) // No need download
{
FileStream* fsOrigin =
FileUtils::getInstance()->openFileStream(coTask._fileName, FileStream::Mode::READ);
auto* fsOrigin = pFileUtils->openFileStream(coTask._fileName, FileStream::Mode::READ);
if (fsOrigin) {
fsOrigin->seek(0, SEEK_END);
task.progressInfo.totalBytesExpected = fsOrigin->tell();