From 8ee71cc5728060d9325221458252ac822ae341d6 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Andr=C3=A9=20Hentschel?= Date: Thu, 24 Jun 2010 21:11:43 +0200 Subject: [PATCH] winetest: Also abort while sending. --- programs/winetest/send.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/programs/winetest/send.c b/programs/winetest/send.c index c25042457c8..11c9f334198 100644 --- a/programs/winetest/send.c +++ b/programs/winetest/send.c @@ -177,6 +177,7 @@ send_file_direct (const char *name) report (R_PROGRESS, 2, filesize); total = 0; while (total < filesize && ReadFile( file, buffer, BUFLEN/2, &bytes_read, NULL )) { + if (aborting) goto abort2; if (!bytes_read) break; total += bytes_read; if (total > filesize) bytes_read -= total - filesize; @@ -344,6 +345,7 @@ send_file_wininet (const char *name) report (R_PROGRESS, 2, filesize); total = 0; while (total < filesize && ReadFile( file, buffer, BUFLEN/2, &bytes_read, NULL )) { + if (aborting) goto done; if (!bytes_read) break; total += bytes_read; if (total > filesize) bytes_read -= total - filesize; -- 2.11.4.GIT