Commit 086eb61c authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

wininet: Don't depend on is_end_of_read_data in HTTPREQ_Read.

parent c2aab425
......@@ -2681,8 +2681,8 @@ static DWORD HTTPREQ_Read(http_request_t *req, void *buffer, DWORD size, DWORD *
WARN("WriteFile failed: %u\n", GetLastError());
}
if(end_of_read_data(req))
http_release_netconn(req, TRUE);
if(size && !ret_read)
http_release_netconn(req, res == ERROR_SUCCESS);
return res;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment