X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/032d55818246a3527281d1e6522564b691703d83..1fc8878582bcdab2a90b95fb713c4d088a0e2a57:/src/msw/gsocket.c diff --git a/src/msw/gsocket.c b/src/msw/gsocket.c index d789711c1d..60d2c3f417 100644 --- a/src/msw/gsocket.c +++ b/src/msw/gsocket.c @@ -97,7 +97,7 @@ GSocket *GSocket_new(void) if (!success) { free(socket); - return NULL; + socket = NULL; } return socket; @@ -768,7 +768,7 @@ GSocketEventFlags GSocket_Select(GSocket *socket, GSocketEventFlags flags) * Sets the socket to non-blocking mode. All IO calls will return * immediately. */ -void GSocket_SetNonBlocking(GSocket *socket, bool non_block) +void GSocket_SetNonBlocking(GSocket *socket, int non_block) { assert(socket != NULL);