Module: wine Branch: master Commit: 0736ca71e72429d48b91936331c88844276eed96 URL: http://source.winehq.org/git/wine.git/?a=commit;h=0736ca71e72429d48b91936331...
Author: Piotr Caban piotr@codeweavers.com Date: Tue Jul 20 00:32:59 2010 +0200
wininet: Don't report error in read_gzip_data when to much data was cached.
---
dlls/wininet/http.c | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/dlls/wininet/http.c b/dlls/wininet/http.c index c9bbde2..a32be25 100644 --- a/dlls/wininet/http.c +++ b/dlls/wininet/http.c @@ -2083,6 +2083,9 @@ static DWORD read_gzip_data(http_request_t *req, BYTE *buf, int size, BOOL sync, break; }
+ if(req->dwContentRead == req->dwContentLength) + break; + 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;