Commit 8ee71cc5 authored by André Hentschel's avatar André Hentschel Committed by Alexandre Julliard

winetest: Also abort while sending.

parent 5038c2c2
...@@ -177,6 +177,7 @@ send_file_direct (const char *name) ...@@ -177,6 +177,7 @@ send_file_direct (const char *name)
report (R_PROGRESS, 2, filesize); report (R_PROGRESS, 2, filesize);
total = 0; total = 0;
while (total < filesize && ReadFile( file, buffer, BUFLEN/2, &bytes_read, NULL )) { while (total < filesize && ReadFile( file, buffer, BUFLEN/2, &bytes_read, NULL )) {
if (aborting) goto abort2;
if (!bytes_read) break; if (!bytes_read) break;
total += bytes_read; total += bytes_read;
if (total > filesize) bytes_read -= total - filesize; if (total > filesize) bytes_read -= total - filesize;
...@@ -344,6 +345,7 @@ send_file_wininet (const char *name) ...@@ -344,6 +345,7 @@ send_file_wininet (const char *name)
report (R_PROGRESS, 2, filesize); report (R_PROGRESS, 2, filesize);
total = 0; total = 0;
while (total < filesize && ReadFile( file, buffer, BUFLEN/2, &bytes_read, NULL )) { while (total < filesize && ReadFile( file, buffer, BUFLEN/2, &bytes_read, NULL )) {
if (aborting) goto done;
if (!bytes_read) break; if (!bytes_read) break;
total += bytes_read; total += bytes_read;
if (total > filesize) bytes_read -= total - filesize; if (total > filesize) bytes_read -= total - filesize;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment