From 10ad1c3b380b53aeb7cab341c423ff0410c4a43f Mon Sep 17 00:00:00 2001 From: Alibek Omarov Date: Sat, 6 Aug 2022 20:19:42 +0300 Subject: [PATCH] filesystem: use correct flushing function for file descriptors on Win32 --- filesystem/filesystem.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/filesystem/filesystem.c b/filesystem/filesystem.c index ebe9c87e..66a9b5ae 100644 --- a/filesystem/filesystem.c +++ b/filesystem/filesystem.c @@ -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