From: Julian Smart Date: Wed, 18 Jan 2006 11:25:47 +0000 (+0000) Subject: Applied patch [ 1394164 ] Update wxWinINetURL to use wxURI X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/c66d0fc3e86d4ba3dd86fe134a73f91de9450ea2?ds=inline 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 --- diff --git a/src/msw/urlmsw.cpp b/src/msw/urlmsw.cpp index 6df72c6583..79b0ae8919 100644 --- a/src/msw/urlmsw.cpp +++ b/src/msw/urlmsw.cpp @@ -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; }