wininet: Don't assume that end of chunk means end of stream.
Jacek Caban
jacek at codeweavers.com
Wed Sep 11 09:38:48 CDT 2013
Hi Hans,
On 09/11/13 13:50, Hans Leidekker wrote:
> static DWORD chunked_get_avail_data(data_stream_t *stream, http_request_t *req)
> {
> - /* Allow reading only from read buffer */
> + chunked_stream_t *chunked_stream = (chunked_stream_t*)stream;
> + DWORD res;
> +
> + if(!chunked_stream->chunk_size || chunked_stream->chunk_size == ~0u) {
> + res = start_next_chunk(chunked_stream, req);
> + if(res != ERROR_SUCCESS)
> + return 0;
> + }
start_next_chunk may block and we don't want chunked_get_avail_data to
block.
Jacek
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.winehq.org/pipermail/wine-devel/attachments/20130911/b6949f4e/attachment.html>
More information about the wine-devel
mailing list