fs/io/FileOutputStream: seek end-of-file in AppendFileOutputStream ctor

This commit is contained in:
Max Kellermann
2015-03-24 21:51:34 +01:00
parent 077e95da85
commit 6387b52896
2 changed files with 12 additions and 0 deletions

View File

@@ -95,6 +95,12 @@ protected:
#endif
}
#ifdef WIN32
bool SeekEOF() {
return SetFilePointer(handle, 0, nullptr, FILE_END);
}
#endif
public:
bool IsDefined() const {
#ifdef WIN32