wininet: Don't depend on is_end_of_read_data in HTTPREQ_Read.

This commit is contained in:
Jacek Caban 2011-05-13 13:48:00 +02:00 committed by Alexandre Julliard
parent c2aab4258a
commit 086eb61c84
1 changed files with 2 additions and 2 deletions

View File

@ -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;
} }