Commit 9e30a2f5 authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

wininet: Check NETCON_connected in netconn_end_of_data.

parent 3909f511
...@@ -2138,7 +2138,7 @@ static DWORD netconn_get_avail_data(data_stream_t *stream, http_request_t *req) ...@@ -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) static BOOL netconn_end_of_data(data_stream_t *stream, http_request_t *req)
{ {
netconn_stream_t *netconn_stream = (netconn_stream_t*)stream; 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, static DWORD netconn_read(data_stream_t *stream, http_request_t *req, BYTE *buf, DWORD size,
......
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