https://bugs.winehq.org/show_bug.cgi?id=36216
--- Comment #39 from Sebastian Lackner sebastian@fds-team.de --- (In reply to Ker noa from comment #38)
https://github.com/wine-compholio/wine-staging/blob/ ad5dcc97522c2087727075ecfb323de1567486a6/patches/kernel32-Console_Handles/ 0001-kernel32-Invalid-console-handles-for-new-processes-a.patch
seems to be the better approach to fix this.
The patch was added just recently and still needs a bit more testing and probably also some more wine tests. But please give it a try and report back if it works. Especially report if you notice that any app breaks with the patch applied.