* Bug fix in wxFilter*Stream
* corrected the URL parser git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@726 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -574,6 +574,8 @@ wxFilterInputStream::wxFilterInputStream(wxInputStream& stream)
|
|||||||
: wxInputStream(NULL)
|
: wxInputStream(NULL)
|
||||||
{
|
{
|
||||||
m_parent_i_stream = &stream;
|
m_parent_i_stream = &stream;
|
||||||
|
wxDELETE(m_i_streambuf); // In case m_i_streambuf has been initialized.
|
||||||
|
m_i_destroybuf = FALSE;
|
||||||
m_i_streambuf = stream.InputStreamBuffer();
|
m_i_streambuf = stream.InputStreamBuffer();
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -608,6 +610,8 @@ wxFilterOutputStream::wxFilterOutputStream(wxOutputStream& stream)
|
|||||||
: wxOutputStream(NULL)
|
: wxOutputStream(NULL)
|
||||||
{
|
{
|
||||||
m_parent_o_stream = &stream;
|
m_parent_o_stream = &stream;
|
||||||
|
wxDELETE(m_o_streambuf); // In case m_o_streambuf has been initialized.
|
||||||
|
m_o_destroybuf = FALSE;
|
||||||
m_o_streambuf = stream.OutputStreamBuffer();
|
m_o_streambuf = stream.OutputStreamBuffer();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -147,7 +147,7 @@ bool wxURL::PrepHost(wxString& url)
|
|||||||
|
|
||||||
pos = url.Find('/');
|
pos = url.Find('/');
|
||||||
if (pos == -1)
|
if (pos == -1)
|
||||||
return FALSE;
|
pos = url.Length();
|
||||||
|
|
||||||
pos2 = url.Find(':');
|
pos2 = url.Find(':');
|
||||||
if (pos2 != -1 && pos2 < pos) {
|
if (pos2 != -1 && pos2 < pos) {
|
||||||
|
Reference in New Issue
Block a user