diff options
Diffstat (limited to 'lib/fstream')
-rw-r--r-- | lib/fstream/win32/ostream.c | 2 |
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; } |