https://bugs.winehq.org/show_bug.cgi?id=51846
--- Comment #10 from Rafał Mużyło galtgendo@o2.pl --- lol
It seems the way the dev was giving out hints managed to discourage the bug reporter.
To the bug reporter: Not that I've been using mingw, but the way I read dev's hints, mingw if passed no additional arguments links to msvcrt, so to test things properly you need to explicitly link to ucrtbase instead.
...or at least that was my initial guess, first google result for "mingw msvcrt ucrtbase" links to a post in mingw mailing archive that says you may need to rebuild your mingw with a different '--with-default-msvcrt' value - bit messy, if true, but that's libc for you.
Try to find that post and read it in full (it say something about possibility of doing that without a rebuild by tampering with compiler specs).