Andrey Turkin <[EMAIL PROTECTED]> 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 [EMAIL PROTECTED]