Re: [PATCH 1/2] [try2] Allow completion object to be attached to an fd object
27 Sep
2007
27 Sep
'07
9:09 a.m.
Andrey Turkin <andrey.turkin(a)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(a)winehq.org
6648
Age (days ago)
6648
Last active (days ago)
0 comments
1 participants
participants (1)
-
Alexandre Julliard