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

List:       wine-devel
Subject:    Re: [PATCH 1/2] [try2] Allow completion object to be attached to an
From:       Alexandre Julliard <julliard () winehq ! org>
Date:       2007-09-27 14:09:53
Message-ID: 877imcqjwu.fsf () wine ! dyndns ! org
[Download RAW message or body]

Andrey Turkin <andrey.turkin@gmail.com> writes:

> +DECL_HANDLER(set_completion_info)
> +{
> +    struct fd *fd = get_handle_fd_obj( current->process, req->handle, 0 );
> +
> +    if (fd)
> +    {
> +        if (fd->completion)
> +            release_object( fd->completion );
> +        fd->completion = get_completion_obj( current->process, req->chandle, \
> IO_COMPLETION_MODIFY_STATE ); +        fd->comp_key = req->ckey;
> +        release_object( fd );

You need to check that the completion object is valid before you start
modifying the fd.

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