[prev in list] [next in list] [prev in thread] [next in thread] 

List:       wine-devel
Subject:    Re: Changes default socket behavior for WSASendTo function from
From:       Alexandre Julliard <julliard () winehq ! org>
Date:       2007-10-31 11:28:20
Message-ID: 87lk9jmskr.fsf () wine ! dyndns ! org
[Download RAW message or body]

yurtk@mail15.com writes:

> diff --git a/dlls/ws2_32/socket.c b/dlls/ws2_32/socket.c
> index 24a4a76..3697746 100644
> --- a/dlls/ws2_32/socket.c
> +++ b/dlls/ws2_32/socket.c
> @@ -2662,7 +2662,8 @@ INT WINAPI WSASendTo( SOCKET s, LPWSABUF lpBuffers, DWORD dwBufferCount,
>          goto error;
>      }
>  
> -    if ((lpOverlapped || lpCompletionRoutine) &&
> +    /* If no options specified, the socket assumed to be non-overlapped*/
> +    if (options && (lpOverlapped || lpCompletionRoutine) &&
>          !(options & (FILE_SYNCHRONOUS_IO_ALERT | FILE_SYNCHRONOUS_IO_NONALERT)))
>      {

This is wrong, it will make all sockets non-overlapped.

-- 
Alexandre Julliard
julliard@winehq.org


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic