X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/1c193821a999730fbf6a9bea83763f37daae68f1..f0244295e3a35a37473e9ba83d6ceea0d17259da:/src/common/file.cpp diff --git a/src/common/file.cpp b/src/common/file.cpp index aca1dc4d26..da27b425d1 100644 --- a/src/common/file.cpp +++ b/src/common/file.cpp @@ -60,7 +60,7 @@ #include #include #ifdef __GNUWIN32__ - #include + #include "wx/msw/wrapwin.h" #endif #elif defined(__DOS__) #if defined(__WATCOMC__) @@ -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; }