From f35746ceeda33434574d667f81d7e6e8b18b7c46 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sat, 12 Jul 2003 16:08:54 +0000 Subject: [PATCH] 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 --- src/common/file.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.45.2