mirror of
https://github.com/YGGverse/xash3d-fwgs.git
synced 2025-01-17 18:40:02 +00:00
filesystem: use correct flushing function for file descriptors on Win32
This commit is contained in:
parent
90c566dde3
commit
10ad1c3b38
@ -1984,7 +1984,7 @@ int FS_Flush( file_t *file )
|
|||||||
if( fsync( file->handle ) < 0 )
|
if( fsync( file->handle ) < 0 )
|
||||||
return EOF;
|
return EOF;
|
||||||
#else
|
#else
|
||||||
if( fflush( file->handle ) < 0 )
|
if( _commit( file->handle ) < 0 )
|
||||||
return EOF;
|
return EOF;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user