[PATCH 2/2] dpwsockx: Implementation of Open callback

Vitaliy Margolen wine-devel at kievinfo.com
Sun Sep 13 16:39:44 CDT 2009


Ismael Barros wrote:
> ---
> +static DWORD WINAPI udp_listener_thread( LPVOID lpParameter )
> +{
> +    for ( ;; )
> +    {
.....
> +    }
> +}
You do not have exit from the loop.

> +    /* Launch thread */
> +    listener->handle = CreateThread( NULL, 0, udp_listener_thread,
> +                                     listener, 0, NULL );
I haven't found the place where you closing this handle.

> +    /* Launch thread */
> +    listener->handle = CreateThread( NULL, 0,
> +                                     ( is_tcp
> +                                       ? tcp_listener_thread
> +                                       : udp_listener_thread ),
> +                                     listener, 0, NULL );
Same here.

Vitaliy.



More information about the wine-devel mailing list