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:
parent
8d5bdb7f2b
commit
ecc201480f
1 changed files with 3 additions and 0 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue