Commit ec6f37bf authored by Stephane Lussier's avatar Stephane Lussier Committed by Alexandre Julliard

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

"signed" check.
parent e0849c8a
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment