Applied BMP patch.
Applied deferred wxBitmapButton patch. Added error checking to wxFileStream and wxFFileStream. Corrected activate event things. All these patches work in the stable branch, the dev-branch does not currently compile. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@9836 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -103,6 +103,16 @@ wxFileOutputStream::wxFileOutputStream(const wxString& fileName)
|
||||
{
|
||||
m_file = new wxFile(fileName, wxFile::write);
|
||||
m_file_destroy = TRUE;
|
||||
|
||||
if (!m_file->IsOpened())
|
||||
{
|
||||
m_lasterror = wxSTREAM_WRITE_ERROR;
|
||||
}
|
||||
else
|
||||
{
|
||||
if (m_file->Error())
|
||||
m_lasterror = wxSTREAM_WRITE_ERROR;
|
||||
}
|
||||
}
|
||||
|
||||
wxFileOutputStream::wxFileOutputStream(wxFile& file)
|
||||
@@ -250,6 +260,16 @@ wxFFileOutputStream::wxFFileOutputStream(const wxString& fileName)
|
||||
{
|
||||
m_file = new wxFFile(fileName, "w+b");
|
||||
m_file_destroy = TRUE;
|
||||
|
||||
if (!m_file->IsOpened())
|
||||
{
|
||||
m_lasterror = wxSTREAM_WRITE_ERROR;
|
||||
}
|
||||
else
|
||||
{
|
||||
if (m_file->Error())
|
||||
m_lasterror = wxSTREAM_WRITE_ERROR;
|
||||
}
|
||||
}
|
||||
|
||||
wxFFileOutputStream::wxFFileOutputStream(wxFFile& file)
|
||||
|
Reference in New Issue
Block a user