diff --git a/dlls/wininet/http.c b/dlls/wininet/http.c index 775ff61e161..67b4a24b215 100644 --- a/dlls/wininet/http.c +++ b/dlls/wininet/http.c @@ -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 );