mirror of
https://github.com/reactos/wine.git
synced 2025-02-24 23:10:48 +00:00
wininet: Don't try to read anything if 0 bytes are to be read.
This commit is contained in:
parent
e994f88cc2
commit
392ceba61f
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user