https://bugs.winehq.org/show_bug.cgi?id=56837
--- Comment #12 from sldev sldev@free.fr --- (In reply to Piotr Caban from comment #10)
I don't understand what's wrong, could you please describe it in more detail? I have verified that both test application output and file content is the same as on Windows.
(In reply to Dmitry Timoshkov from comment #11)
(In reply to Piotr Caban from comment #10)
I don't understand what's wrong, could you please describe it in more detail? I have verified that both test application output and file content is the same as on Windows.
I can confirm that with the proposed MR 7651 attached test shows same result under Wine as observed under Windows.
Hmm... Maybe, *if* _flsbuf() is *systematically* called during fwrite() ?... I must admit I did not look at the surrounding code and I'm not familiar with Wine at a source code level... But the first patch looked "safer" to me, since the file pointer was set just before the actual write to the file.