aboutsummaryrefslogtreecommitdiffstats
path: root/src/fs/io/FileOutputStream.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'src/fs/io/FileOutputStream.hxx')
-rw-r--r--src/fs/io/FileOutputStream.hxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/fs/io/FileOutputStream.hxx b/src/fs/io/FileOutputStream.hxx
index 851d67a6d..b182fd03f 100644
--- a/src/fs/io/FileOutputStream.hxx
+++ b/src/fs/io/FileOutputStream.hxx
@@ -97,7 +97,8 @@ protected:
#ifdef WIN32
bool SeekEOF() {
- return SetFilePointer(handle, 0, nullptr, FILE_END);
+ return SetFilePointer(handle, 0, nullptr,
+ FILE_END) != 0xffffffff;
}
#endif