Get full buffers in Internet_Readfile.

This commit is contained in:
Uwe Bonnes 2004-09-08 01:25:21 +00:00 committed by Alexandre Julliard
parent 440ad8ccf2
commit b50446216b
1 changed files with 1 additions and 1 deletions

View File

@ -1632,7 +1632,7 @@ BOOL WINAPI InternetReadFile(HINTERNET hFile, LPVOID lpBuffer,
{
case WH_HHTTPREQ:
if (!NETCON_recv(&((LPWININETHTTPREQW)lpwh)->netConnection, lpBuffer,
dwNumOfBytesToRead, 0, (int *)dwNumOfBytesRead))
dwNumOfBytesToRead, MSG_WAITALL, (int *)dwNumOfBytesRead))
{
*dwNumOfBytesRead = 0;
retval = TRUE; /* Under windows, it seems to return 0 even if nothing was read... */