filesystem: use correct flushing function for file descriptors on Win32

This commit is contained in:
Alibek Omarov 2022-08-06 20:19:42 +03:00
parent 90c566dde3
commit 10ad1c3b38
1 changed files with 1 additions and 1 deletions

View File

@ -1984,7 +1984,7 @@ int FS_Flush( file_t *file )
if( fsync( file->handle ) < 0 )
return EOF;
#else
if( fflush( file->handle ) < 0 )
if( _commit( file->handle ) < 0 )
return EOF;
#endif