wininet: Don't depend on is_end_of_read_data in HTTPREQ_Read.
This commit is contained in:
parent
c2aab4258a
commit
086eb61c84
|
@ -2681,8 +2681,8 @@ static DWORD HTTPREQ_Read(http_request_t *req, void *buffer, DWORD size, DWORD *
|
||||||
WARN("WriteFile failed: %u\n", GetLastError());
|
WARN("WriteFile failed: %u\n", GetLastError());
|
||||||
}
|
}
|
||||||
|
|
||||||
if(end_of_read_data(req))
|
if(size && !ret_read)
|
||||||
http_release_netconn(req, TRUE);
|
http_release_netconn(req, res == ERROR_SUCCESS);
|
||||||
|
|
||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue