From: Vadim Zeitlin Date: Sat, 12 Jul 2003 16:08:54 +0000 (+0000) Subject: fixed wxTempFile::Commit() broken by last check in X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/f35746ceeda33434574d667f81d7e6e8b18b7c46?ds=sidebyside fixed wxTempFile::Commit() broken by last check in git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@21922 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- 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; }