wininet: Don't report error in read_gzip_data when to much data was cached.
This commit is contained in:
parent
c6d34d7b05
commit
0736ca71e7
|
@ -2083,6 +2083,9 @@ static DWORD read_gzip_data(http_request_t *req, BYTE *buf, int size, BOOL sync,
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(req->dwContentRead == req->dwContentLength)
|
||||||
|
break;
|
||||||
|
|
||||||
buf_avail = req->dwContentLength == ~0 ? req->read_size : min(req->read_size, req->dwContentLength-req->dwContentRead);
|
buf_avail = req->dwContentLength == ~0 ? req->read_size : min(req->read_size, req->dwContentLength-req->dwContentRead);
|
||||||
|
|
||||||
zstream->next_in = req->read_buf+req->read_pos;
|
zstream->next_in = req->read_buf+req->read_pos;
|
||||||
|
|
Loading…
Reference in New Issue