diff --git a/src/common/file.cpp b/src/common/file.cpp index aca1dc4d26..637d450da5 100644 --- a/src/common/file.cpp +++ b/src/common/file.cpp @@ -717,7 +717,7 @@ bool wxTempFile::Commit() return FALSE; } - if ( wxRenameFile(m_strTemp, m_strName) != 0 ) { + if ( !wxRenameFile(m_strTemp, m_strName) ) { wxLogSysError(_("can't commit changes to file '%s'"), m_strName.c_str()); return FALSE; }