https://bugs.winehq.org/show_bug.cgi?id=56714
--- Comment #8 from vv221 accounts.winehq.org@vv221.fr --- Created attachment 76830 --> https://bugs.winehq.org/attachment.cgi?id=76830 Revert the regression
This is not a minimal patch, but a full revert of the commit introducing the regression. It can most probably be reduced while still providing a fix.
As I am not a C developer, I have not tried tinkering with it further as soon as I got WINE to build cleanly.