wininet: Check NETCON_connected in netconn_end_of_data.

This commit is contained in:
Jacek Caban 2011-04-06 18:37:55 +02:00 committed by Alexandre Julliard
parent 3909f51122
commit 9e30a2f5ee
1 changed files with 1 additions and 1 deletions

View File

@ -2138,7 +2138,7 @@ static DWORD netconn_get_avail_data(data_stream_t *stream, http_request_t *req)
static BOOL netconn_end_of_data(data_stream_t *stream, http_request_t *req)
{
netconn_stream_t *netconn_stream = (netconn_stream_t*)stream;
return netconn_stream->content_read == netconn_stream->content_length;
return netconn_stream->content_read == netconn_stream->content_length || !NETCON_connected(&req->netConnection);
}
static DWORD netconn_read(data_stream_t *stream, http_request_t *req, BYTE *buf, DWORD size,