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

Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Jacek Caban 2016-05-04 12:39:21 +02:00 committed by Alexandre Julliard
parent f5531dc347
commit 87fffa1ebf
1 changed files with 1 additions and 1 deletions

View File

@ -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 );