https://bugs.winehq.org/show_bug.cgi?id=3930
--- Comment #90 from Dmitry Timoshkov dmitry@baikal.ru --- (In reply to Damjan Jovanovic from comment #89)
I think your patch is correct, as long as you use thread IDs instead of handles. Can you please submit it?
https://gitlab.winehq.org/wine/wine/-/merge_requests/7474
And Dmitry, thank you so much for all your help in debugging this :-).
You're welcome! That was a pure guess.