https://bugs.winehq.org/show_bug.cgi?id=38153
--- Comment #5 from Ken Thomases ken@codeweavers.com --- (In reply to Kurt from comment #4)
Could you please give some hints on how to debug this, i.e., what to add to WINEDEBUG?
Well, you could try forcing a crash instead of the ExitProcess() call, to get a backtrace. For example, put this above it:
*(char*)1 = 0;
Maybe also a +server log would make clear why the set_queue_fd server call is returning STATUS_ACCESS_DENIED (0xC0000022).