Set wxSTREAM_WRITE_ERROR for wxFFileInputStream when open fails

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35185 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Michael Wetherell
2005-08-13 20:53:13 +00:00
parent 8d5bdb7f2b
commit ecc201480f

View File

@@ -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()