mirror of
https://github.com/reactos/wine.git
synced 2025-02-26 15:57:20 +00:00
wininet: Return synchronously from InternetReadFile if there is no more data to read.
Similar to 87fffa1ebfb71fe7a34aa989fa88f85409dbb62f. Signed-off-by: Sebastian Lackner <sebastian@fds-team.de> Signed-off-by: Jacek Caban <jacek@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
b9357ecaad
commit
a3a572beb0
@ -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 );
|
||||
|
Loading…
x
Reference in New Issue
Block a user