]> git.saurik.com Git - wxWidgets.git/commitdiff
fixed wxTempFile::Commit() broken by last check in
authorVadim Zeitlin <vadim@wxwidgets.org>
Sat, 12 Jul 2003 16:08:54 +0000 (16:08 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sat, 12 Jul 2003 16:08:54 +0000 (16:08 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@21922 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/file.cpp

index aca1dc4d26a1f2760ce0ac0169247746bcf65194..637d450da530548d19e9e4f8c4b5f36cae642e59 100644 (file)
@@ -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;
     }