https://bugs.winehq.org/show_bug.cgi?id=47970
--- Comment #24 from Daniel Bomar dbdaniel42@gmail.com --- (In reply to Vijay Kamuju from comment #23)
patch upstreamed to wine https://source.winehq.org/git/wine.git/commitdiff/ 195c57eeb7e62263af229baf5f486f353bf6459e
That patch doesn't seem to have fixed it. Backporting that patch did work on be0eb9c92eb7a4fcd9d0d48568c8ed5e8326ef0b but it broke again on the very next commit (35b063a404457fdf956d1913738a3c8a66266cb4) and it doesn't work on the current wine version either.
I've been trying to debug the problem but haven't really gotten anywhere. I have a hunch that the problem started with the wine-staging rebase of winebuild-Fake_Dlls. Some of the code for the syscall thunks got moved from thread.c to loader.c. But those patches aren't even in the current version of wine so I'm not sure.