From ec6f37bf3ed28af11ff821ed930e5f2ea94883f6 Mon Sep 17 00:00:00 2001 From: Stephane Lussier Date: Fri, 1 Sep 2000 01:21:42 +0000 Subject: [PATCH] When checking the socket return by the server request, we should do a "signed" check. --- dlls/winsock/socket.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dlls/winsock/socket.c b/dlls/winsock/socket.c index 7ffb0a8fcb8..102a4ba2379 100644 --- a/dlls/winsock/socket.c +++ b/dlls/winsock/socket.c @@ -850,7 +850,7 @@ SOCKET WINAPI WSOCK32_accept(SOCKET s, struct sockaddr *addr, as = req->handle; } SERVER_END_REQ; - if( as >= 0 ) + if( ((int)as) >= 0 ) { unsigned omask = _get_sock_mask( s ); int fd = _get_sock_fd( as ); @@ -2232,7 +2232,7 @@ SOCKET WINAPI WSOCK32_socket(INT af, INT type, INT protocol) ret = req->handle; } SERVER_END_REQ; - if ( ret >= 0) + if ( ((int) ret) >= 0) { TRACE("\tcreated %04x\n", ret ); return ret;