http://bugs.winehq.org/show_bug.cgi?id=17195
--- Comment #128 from Daniel Jelinski djelinski1@gmail.com 2013-01-04 00:12:02 CST --- (In reply to comment #127)
I know that splitting is good xD But that's the one where you stop getting a pipe_instance handle and start getting a pipe_end handle for the server end. Those functions *must* change at the same time or stuff breaks. Is there a way to get around that that I'm not seeing?
Make pipe_instance_flush read: { if(inst->server->fd) { pipe_end_flush(inst->server); return; } no_flush(); } or something along these lines. Same for pipe_instance_ioctl. When you switch to pipe_end_fd_ops, these lines will never be called, so you may remove them in a later patch (which can even be a separate one).