When checking the socket return by the server request, we should do a

"signed" check.
oldstable
Stephane Lussier 2000-09-01 01:21:42 +00:00 committed by Alexandre Julliard
parent e0849c8a52
commit ec6f37bf3e
1 changed files with 2 additions and 2 deletions

View File

@ -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;