From 6387b528961010b09e20fe807b5207ca7bf821f9 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Tue, 24 Mar 2015 21:51:34 +0100 Subject: fs/io/FileOutputStream: seek end-of-file in AppendFileOutputStream ctor --- src/fs/io/FileOutputStream.hxx | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/fs/io/FileOutputStream.hxx') diff --git a/src/fs/io/FileOutputStream.hxx b/src/fs/io/FileOutputStream.hxx index 9decb6f00..6756de99e 100644 --- a/src/fs/io/FileOutputStream.hxx +++ b/src/fs/io/FileOutputStream.hxx @@ -95,6 +95,12 @@ protected: #endif } +#ifdef WIN32 + bool SeekEOF() { + return SetFilePointer(handle, 0, nullptr, FILE_END); + } +#endif + public: bool IsDefined() const { #ifdef WIN32 -- cgit v1.2.3