Fixed small bug in WSOCK32_accept

This commit is contained in:
Alexandre Julliard 2000-03-28 13:19:21 +00:00
parent a048fdd6a4
commit e0842daf60
1 changed files with 1 additions and 1 deletions

View File

@ -748,8 +748,8 @@ SOCKET WINAPI WSOCK32_accept(SOCKET s, struct sockaddr *addr,
sock_server_call( REQ_ACCEPT_SOCKET );
if( req->handle >= 0 )
{
unsigned omask = _get_sock_mask( s );
SOCKET as = req->handle;
unsigned omask = _get_sock_mask( s );
int fd = _get_sock_fd( as );
if( getpeername(fd, addr, addrlen32) != -1 )
{