Commit 87fffa1e authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

wininet: Return synchronously from InternetReadFileEx if there is no more data to read.

parent f5531dc3
......@@ -3145,7 +3145,7 @@ static DWORD HTTPREQ_ReadFileEx(object_header_t *hdr, void *buf, DWORD size, DWO
if (TryEnterCriticalSection( &req->read_section ))
{
if (get_avail_data(req))
if (get_avail_data(req) || end_of_read_data(req))
{
res = HTTPREQ_Read(req, buf, size, &read);
LeaveCriticalSection( &req->read_section );
......
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