somewhat modded [ 1056879 ] use wxURI::Unescape vs wxURL::ConvertFromURI

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30171 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Ryan Norton
2004-10-29 20:19:49 +00:00
parent e313e308c0
commit 6cc280ca91
2 changed files with 2 additions and 10 deletions

View File

@@ -43,17 +43,13 @@ wxFileProto::~wxFileProto()
wxInputStream *wxFileProto::GetInputStream(const wxString& path)
{
#if !wxUSE_URL
return NULL;
#else
wxFileInputStream* retval = new wxFileInputStream(wxURL::ConvertFromURI(path));
wxFileInputStream* retval = new wxFileInputStream(wxURI::Unescape(path));
if (retval->Ok()) {
return retval;
} else {
delete retval;
return 0;
}
#endif
}
#endif // wxUSE_STREAMS && wxUSE_PROTOCOL_FILE