]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/ffile.cpp
Changes for mingw32/gcc-2.95
[wxWidgets.git] / src / common / ffile.cpp
index 4449ec42a2c6c0a1a18ab0ba56862b311c3a7e83..e1e5a2dbe119a9111236a473034bf169784406aa 100644 (file)
@@ -167,7 +167,9 @@ bool wxFFile::Flush()
 {
     if ( IsOpened() )
     {
-        if ( !fflush(m_fp) )
+        // fflush returns non-zero on error
+        //
+        if ( fflush(m_fp) )
         {
             wxLogSysError(_("failed to flush the file '%s'"), m_name.c_str());