Commit 7d8c8af9 authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

wininet: Fixed crash in chunked_read if netconn is not available.

parent 479195ea
......@@ -2643,7 +2643,7 @@ static DWORD chunked_read(data_stream_t *stream, http_request_t *req, BYTE *buf,
if(read_mode == READMODE_NOBLOCK) {
DWORD avail;
if(!NETCON_query_data_available(req->netconn, &avail) || !avail)
if(!req->netconn || !NETCON_query_data_available(req->netconn, &avail) || !avail)
break;
if(read_bytes > avail)
read_bytes = avail;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment