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:
@@ -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());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user