aboutsummaryrefslogtreecommitdiff
path: root/lib/fstream/win32/ostream.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/fstream/win32/ostream.c')
-rw-r--r--lib/fstream/win32/ostream.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/fstream/win32/ostream.c b/lib/fstream/win32/ostream.c
index e593f7e..7b5bd3e 100644
--- a/lib/fstream/win32/ostream.c
+++ b/lib/fstream/win32/ostream.c
@@ -35,7 +35,7 @@ static int w32_append(HANDLE hnd, const char *filename,
static int w32_flush(HANDLE hnd, const char *filename)
{
- if (FlushFileBuffers(hnd) != 0) {
+ if (!FlushFileBuffers(hnd)) {
w32_perror(filename);
return -1;
}