X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/b9698194c1dfba8c3ec3737eac492443c4c64545..d36c9347ea16171bc2f855076d8b9b11801ec622:/src/common/wfstream.cpp?ds=sidebyside diff --git a/src/common/wfstream.cpp b/src/common/wfstream.cpp index a142d44f7c..74bdde1040 100644 --- a/src/common/wfstream.cpp +++ b/src/common/wfstream.cpp @@ -9,10 +9,6 @@ // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// -#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) -#pragma implementation "wfstream.h" -#endif - // For compilers that support precompilation, includes "wx.h". #include "wx/wxprec.h" @@ -229,6 +225,9 @@ wxFFileInputStream::wxFFileInputStream(const wxString& fileName, { m_file = new wxFFile(fileName, mode); m_file_destroy = true; + + if (!m_file->IsOpened()) + m_lasterror = wxSTREAM_WRITE_ERROR; } wxFFileInputStream::wxFFileInputStream()