We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f6d117d commit 048e0fcCopy full SHA for 048e0fc
dll/win32/mswsock/msafd/listen.c
@@ -47,7 +47,7 @@ WSPListen(SOCKET Handle,
47
EnterCriticalSection(&Socket->Lock);
48
49
/* If the socket is connection-less, fail */
50
- if (MSAFD_IS_DGRAM_SOCK(Socket));
+ if (MSAFD_IS_DGRAM_SOCK(Socket))
51
{
52
/* Fail */
53
ErrorCode = WSAEOPNOTSUPP;
@@ -61,9 +61,9 @@ WSPListen(SOCKET Handle,
61
ErrorCode = NO_ERROR;
62
goto error;
63
}
64
- else if (Socket->SharedData.State != SocketConnected)
+ else if (Socket->SharedData.State != SocketBound)
65
66
- /* If we're not connected, fail */
+ /* If we're not bound, fail */
67
ErrorCode = WSAEINVAL;
68
69
0 commit comments