Flush the buffer after write.

This commit is contained in:
sorgelig
2019-01-10 23:55:30 +08:00
parent 67442742c5
commit c2697a9473

View File

@@ -613,6 +613,8 @@ int FileWriteAdv(fileTYPE *file, void *pBuffer, int length)
if (file->filp)
{
ret = fwrite(pBuffer, length, 1, file->filp);
fflush(file->filp);
if (ret < 0)
{
printf("FileWriteAdv error(%d).\n", ret);