From ecc201480f87bb6d3d03a08a57598040d5fa48ed Mon Sep 17 00:00:00 2001 From: Michael Wetherell Date: Sat, 13 Aug 2005 20:53:13 +0000 Subject: [PATCH] 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 --- src/common/wfstream.cpp | 3 +++ 1 file changed, 3 insertions(+) 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() -- 2.50.0