wininet: Fix calculation of content length from chunk size.

This commit is contained in:
Hans Leidekker 2013-09-03 14:18:52 +02:00 committed by Alexandre Julliard
parent 9db146f544
commit daa0acdbcf
1 changed files with 2 additions and 1 deletions

View File

@ -2762,7 +2762,8 @@ static DWORD start_next_chunk(chunked_stream_t *stream, http_request_t *req)
{
TRACE( "reading %u byte chunk\n", chunk_size );
stream->chunk_size = chunk_size;
req->contentLength += chunk_size;
if (req->contentLength == ~0u) req->contentLength = chunk_size;
else req->contentLength += chunk_size;
return discard_chunked_eol(stream, req);
}
remove_chunked_data(stream, 1);