X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/85806dc2d85ba9638ac8e60865c98618e18af780..37b8e6798782278fdfe4f3c1291aaff55cdbb8c9:/src/msw/gsocket.c diff --git a/src/msw/gsocket.c b/src/msw/gsocket.c index 6a8c8d474c..10c1b2ab4f 100644 --- a/src/msw/gsocket.c +++ b/src/msw/gsocket.c @@ -655,12 +655,16 @@ int GSocket_Read(GSocket *socket, char *buffer, int size) * if the socket is in non-blocking mode (which is always * the case here, no matter the setting of GSocket itself) * a call to send() can fail with EWOULDBLOCK even when - * select() says that the socket is readable. + * select() says that the socket is writable. * * This can break several things because, usually, if * select() says that the socket is writable, it is * assumed that send() won't fail. To avoid this, we * return 0 instead of -1 for this special case. + * + * XXX - this comment seems not to belong here, and also + * the code is not consistent with the unix version of + * gsocket... what to do? (GRG) */ if (WSAGetLastError() != WSAEWOULDBLOCK) {