27 Sep
2007
27 Sep
'07
2:09 p.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