From ae52dee4a7b2e108dc260d52ce0e0bde78474ac9 Mon Sep 17 00:00:00 2001 From: aunsane Date: Tue, 9 May 2017 23:04:10 +0300 Subject: CloudFile: fix upload --- plugins/CloudFile/src/Services/yandex_service.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'plugins/CloudFile/src/Services/yandex_service.cpp') diff --git a/plugins/CloudFile/src/Services/yandex_service.cpp b/plugins/CloudFile/src/Services/yandex_service.cpp index 167d9cc3f8..04d63138c0 100644 --- a/plugins/CloudFile/src/Services/yandex_service.cpp +++ b/plugins/CloudFile/src/Services/yandex_service.cpp @@ -250,8 +250,7 @@ UINT CYandexService::Upload(FileTransferParam *ftp) else { uint64_t offset = 0; double chunkCount = ceil(double(fileSize) / chunkSize); - while (chunkCount--) - { + while (chunkCount > 0) { ftp->CheckCurrentFile(); size_t size = ftp->ReadCurrentFile(chunk, chunkSize); -- cgit v1.2.3