fixed compiler error

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@3209 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
1999-07-30 04:28:24 +00:00
parent 978db70ee3
commit 19e0e04b93

View File

@@ -256,6 +256,8 @@ wxInputStream *wxURL::GetInputStream(void)
}
#if wxUSE_SOCKETS
wxIPV4address addr;
// m_protoinfo is NULL when we use a proxy
if (!m_useProxy && m_protoinfo->m_needhost) {
if (!addr.Hostname(m_hostname)) {
@@ -263,7 +265,6 @@ wxInputStream *wxURL::GetInputStream(void)
return NULL;
}
wxIPV4address addr;
addr.Service(m_servname);
if (!m_protocol->Connect(addr, TRUE)) // Watcom needs the 2nd arg for some reason