mirror of
https://github.com/reactos/wine.git
synced 2024-11-26 05:00:30 +00:00
wininet: Set content_length when we reach end of data in netconn_read.
This commit is contained in:
parent
8e37ed551a
commit
cfdc539972
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user