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