From b07509df72c65fa553d69464acf4b19ba5493c0e Mon Sep 17 00:00:00 2001 From: hidnplayr Date: Fri, 13 Oct 2017 22:17:40 +0000 Subject: [PATCH] Check FLAG_GOT_ALL_DATA is set, even when no additional data was received. git-svn-id: svn://kolibrios.org@7092 a494cfbc-eb01-0410-851d-a64ba20cac60 --- programs/network/downloader/downloader.asm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/programs/network/downloader/downloader.asm b/programs/network/downloader/downloader.asm index bd36507368..326b348c89 100644 --- a/programs/network/downloader/downloader.asm +++ b/programs/network/downloader/downloader.asm @@ -239,7 +239,8 @@ got_data: .write: mov ecx, [ebp + http_msg.content_received] sub ecx, [offset] - jz download_loop ; more then 0 data bytes? + jz .no_data ; more then 0 data bytes? + mov [fileinfo.size], ecx mov eax, [ebp + http_msg.content_ptr] mov [fileinfo.buffer], eax @@ -258,6 +259,7 @@ got_data: invoke progressbar_draw, pb + .no_data: test [ebp + http_msg.flags], FLAG_GOT_ALL_DATA jz download_loop