X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/1c193821a999730fbf6a9bea83763f37daae68f1..61d457caae3e33efe8e0953f79c4a94e366b22d7:/src/common/file.cpp diff --git a/src/common/file.cpp b/src/common/file.cpp index aca1dc4d26..d8f53811f0 100644 --- a/src/common/file.cpp +++ b/src/common/file.cpp @@ -58,9 +58,10 @@ // TODO: what to include? #elif (defined(__UNIX__) || defined(__GNUWIN32__)) #include + #include #include #ifdef __GNUWIN32__ - #include + #include "wx/msw/wrapwin.h" #endif #elif defined(__DOS__) #if defined(__WATCOMC__) @@ -717,7 +718,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; }