https://bugs.winehq.org/show_bug.cgi?id=56789
--- Comment #18 from jubilantjerry@gmail.com --- I've narrowed down the bug to a specific feature. It is indeed something in Wine-staging that causes the problem.
When basing on commit 1719aef8cbc99994ec93848ae6e9e29e5c4beb78 (Release 9.4) in Wine, the bug does not appear when I apply the patches from Wine-staging at commit daf7cb4cb9c8dbdc8850c8189eacd4302e1a76b6.
But if I use the patches from Wine-staging at commit aa8b27c396f926212689d18da91778f5f8821c6d, followed by a cherry-pick of 50bad5b9aff29bae6af6cc84a2e7b9efd30b0999, the bug appears.
Both commits in Wine-staging are related to "user32-rawinput-mouse" and pushed by alesliehughes. I needed to apply both commits in order for Wine to compile. The bug is reproducible using any version of Wine-staging after both commits.
Is the bug considered confirmed at this point? I don't have any knowledge of the codebase so I can't say why this particular commit causes problems or how one can fix it. Let me know if you need me to test any patches on my machine to see if the crash is fixed.