https://bugs.winehq.org/show_bug.cgi?id=51479
--- Comment #10 from Zebediah Figura z.figura12@gmail.com --- (In reply to RĂ©mi Bernon from comment #9)
I understand that it may not be the right thing to do, but reading the driver documentation doesn't make it very much clearer to me what the right thing is.
The patch seems pretty safe to me, and I don't really see how this is so bad. It may unlink an already unlinked device but that shouldn't cause any issue. It also solves an ugly crash on exit, which I think is desirable even if it's a temporary solution before a more proper fix.
Unlinking an already unlinked device is its own crash.
I'm currently looking into the right way to solve this.