mirror of
https://github.com/reactos/wine.git
synced 2024-11-24 20:30:01 +00:00
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:
parent
f5531dc347
commit
87fffa1ebf
@ -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 );
|
||||
|
Loading…
Reference in New Issue
Block a user