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
This commit is contained in:
Vadim Zeitlin
2003-07-12 16:08:54 +00:00
parent 09785dd38d
commit f35746ceed

View File

@@ -717,7 +717,7 @@ bool wxTempFile::Commit()
return FALSE; 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()); wxLogSysError(_("can't commit changes to file '%s'"), m_strName.c_str());
return FALSE; return FALSE;
} }