Applied patch [ 1394164 ] Update wxWinINetURL to use wxURI

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@36954 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Julian Smart 2006-01-18 11:25:47 +00:00
parent 70b6d39412
commit c66d0fc3e8

View File

@ -199,11 +199,11 @@ wxURLNativeImp *wxURL::CreateNativeImpObject()
wxInputStream *wxWinINetURL::GetInputStream(wxURL *owner)
{
DWORD service;
if ( owner->GetProtocolName() == wxT("http") )
if ( owner->GetScheme() == wxT("http") )
{
service = INTERNET_SERVICE_HTTP;
}
else if ( owner->GetProtocolName() == wxT("ftp") )
else if ( owner->GetScheme() == wxT("ftp") )
{
service = INTERNET_SERVICE_FTP;
}