[PATCH 1/2] [try2] Allow completion object to be attached to an fd object
Alexandre Julliard
julliard at winehq.org
Thu Sep 27 09:09:53 CDT 2007
Andrey Turkin <andrey.turkin at 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 at winehq.org
More information about the wine-devel
mailing list