Commit 392ceba6 authored by Rob Shearman's avatar Rob Shearman Committed by Alexandre Julliard

wininet: Don't try to read anything if 0 bytes are to be read.

parent e994f88c
......@@ -498,6 +498,11 @@ BOOL NETCON_recv(WININET_NETCONNECTION *connection, void *buf, size_t len, int f
int *recvd /* out */)
{
if (!NETCON_connected(connection)) return FALSE;
if (!len)
{
*recvd = 0;
return TRUE;
}
if (!connection->useSSL)
{
*recvd = recv(connection->socketFD, buf, len, flags);
......
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