Ouch! MinGW is really in a limbo, sticking its fork into the proverbial toaster. Microsoft can change behaviors in MSVCRT.DLL, which can break MinGW programs.
Now I'm even more motivated to stop using MinGW.
Now I'm even more motivated to stop using MinGW.
http://source.winehq.org/git/wine.git/tree/HEAD:/dlls/msvcrt
I don't know enough about MinGW to try it, but seems worth a shot!