wine.larry.engholm@xoxy.net writes:
One of the changes to file.c for revision 1.66 (2004/05/12) moved the code to flush output buffers from _close() to MSVCRT_fclose(). The latter function isn't called by msvcrt_free_io() which is called by DllMain() for DLL_PROCESS_DETACH, so buffers are no longer flushed when a program exits.
Then it's msvcrt_free_io() that should be fixed, not _close().