https://bugs.winehq.org/show_bug.cgi?id=53365
--- Comment #1 from Jacek Caban jacek@codeweavers.com --- This is a mingw-w64 regression that I fixed upstream with: https://sourceforge.net/p/mingw-w64/mingw-w64/ci/c9cb69871cef58fd1c7ebb13052...
What mingw-w64 version do you use? We can probably backport that to stable upstream branch.