wininet: Set content_length when we reach end of data in netconn_read.

This commit is contained in:
Jacek Caban 2011-06-10 14:47:27 +02:00 committed by Alexandre Julliard
parent 8e37ed551a
commit cfdc539972

View File

@ -2346,6 +2346,8 @@ static DWORD netconn_read(data_stream_t *stream, http_request_t *req, BYTE *buf,
if(size && req->netconn) {
if(NETCON_recv(req->netconn, buf, size, read_mode == READMODE_SYNC ? MSG_WAITALL : 0, &len) != ERROR_SUCCESS)
len = 0;
if(!len)
netconn_stream->content_length = netconn_stream->content_read;
}
netconn_stream->content_read += *read = len;