diff options
Diffstat (limited to '')
-rw-r--r-- | src/common/fs/file.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/common/fs/file.cpp b/src/common/fs/file.cpp index 077f34995..022780e4e 100644 --- a/src/common/fs/file.cpp +++ b/src/common/fs/file.cpp @@ -347,6 +347,9 @@ u64 IOFile::GetSize() const { return 0; } + // Flush any unwritten buffered data into the file prior to retrieving the file size. + std::fflush(file); + std::error_code ec; const auto file_size = fs::file_size(file_path, ec); |