Commit 80cfdd35 authored by Krzysztof Foltman's avatar Krzysztof Foltman Committed by Alexandre Julliard

Make sure InternetReadFile returns full buffers.

parent 7c89759e
......@@ -1646,7 +1646,7 @@ BOOL WINAPI InternetReadFile(HINTERNET hFile, LPVOID lpBuffer,
nSocket = ((LPWININETFILE)lpwh)->nDataSocket;
if (nSocket != -1)
{
int res = recv(nSocket, lpBuffer, dwNumOfBytesToRead, 0);
int res = recv(nSocket, lpBuffer, dwNumOfBytesToRead, MSG_WAITALL);
retval = (res >= 0);
*dwNumOfBytesRead = retval ? res : 0;
}
......
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