Browse Source

filesystem: use correct flushing function for file descriptors on Win32

pull/2/head
Alibek Omarov 2 years ago
parent
commit
10ad1c3b38
  1. 2
      filesystem/filesystem.c

2
filesystem/filesystem.c

@ -1984,7 +1984,7 @@ int FS_Flush( file_t *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

Loading…
Cancel
Save