Hans Leidekker : winhttp: Also close the connection when there' s nothing to read.
Alexandre Julliard
julliard at winehq.org
Fri Jan 27 11:30:40 CST 2012
Module: wine
Branch: master
Commit: 07ed66f8ecb5c81c7bbc4bc0825e0d7fc728111d
URL: http://source.winehq.org/git/wine.git/?a=commit;h=07ed66f8ecb5c81c7bbc4bc0825e0d7fc728111d
Author: Hans Leidekker <hans at codeweavers.com>
Date: Fri Jan 27 10:53:23 2012 +0100
winhttp: Also close the connection when there's nothing to read.
---
dlls/winhttp/request.c | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
diff --git a/dlls/winhttp/request.c b/dlls/winhttp/request.c
index f615f41..516ff35 100644
--- a/dlls/winhttp/request.c
+++ b/dlls/winhttp/request.c
@@ -1820,7 +1820,11 @@ static void drain_content( request_t *request )
DWORD bytes_read;
char buffer[2048];
- if (!request->content_length) return;
+ if (!request->content_length)
+ {
+ finished_reading( request );
+ return;
+ }
for (;;)
{
if (!read_data( request, buffer, sizeof(buffer), &bytes_read, FALSE ) || !bytes_read) return;
More information about the wine-cvs
mailing list