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
This commit is contained in:
hidnplayr 2017-10-13 22:17:40 +00:00
parent 55a5bd1941
commit b07509df72

View File

@ -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