X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/b9698194c1dfba8c3ec3737eac492443c4c64545..a0845d45830eb22769107a61a6cb3485fa21922b:/src/common/wfstream.cpp diff --git a/src/common/wfstream.cpp b/src/common/wfstream.cpp index a142d44f7c..b5c9ccbb21 100644 --- a/src/common/wfstream.cpp +++ b/src/common/wfstream.cpp @@ -229,6 +229,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()