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:
@@ -229,6 +229,9 @@ wxFFileInputStream::wxFFileInputStream(const wxString& fileName,
|
|||||||
{
|
{
|
||||||
m_file = new wxFFile(fileName, mode);
|
m_file = new wxFFile(fileName, mode);
|
||||||
m_file_destroy = true;
|
m_file_destroy = true;
|
||||||
|
|
||||||
|
if (!m_file->IsOpened())
|
||||||
|
m_lasterror = wxSTREAM_WRITE_ERROR;
|
||||||
}
|
}
|
||||||
|
|
||||||
wxFFileInputStream::wxFFileInputStream()
|
wxFFileInputStream::wxFFileInputStream()
|
||||||
|
Reference in New Issue
Block a user