https://bugs.winehq.org/show_bug.cgi?id=58050
--- Comment #1 from Bernhard Übelacker bernhardu@mailbox.org --- Hello Andrey, thanks for the report and I could reproduce the issue. It looks like we enter UnregisterDeviceNotification twice for the same handle.
With ASan enabled this also shows up with d78cbe84e5f reverted, so this issue existed already before, just did not manifest.
Does following patch avoid the crash in your setup? https://gitlab.winehq.org/bernhardu/wine/-/commit/05fc002f02344913cc0f691eee...