Fixed bug in function Flush().

It was testing for !fflush() as error


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@3390 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Michael Bedward
1999-08-16 07:50:36 +00:00
parent 66cd017c29
commit 5b96c684f3

View 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());