Commit a3a572be authored by Sebastian Lackner's avatar Sebastian Lackner Committed by Alexandre Julliard

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

parent b9357eca
......@@ -3242,7 +3242,7 @@ static DWORD HTTPREQ_ReadFile(object_header_t *hdr, void *buffer, DWORD size, DW
if (TryEnterCriticalSection( &req->read_section ))
{
if (get_avail_data(req))
if (get_avail_data(req) || end_of_read_data(req))
{
res = HTTPREQ_Read(req, buffer, 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