wxInputStream *wxFileProto::GetInputStream(const wxString& path)
{
- return new wxFileInputStream(path);
+ wxFileInputStream* retval = new wxFileInputStream(wxURL::ConvertFromURI(path));
+ if (retval->Ok()) {
+ return retval;
+ } else {
+ delete retval;
+ return 0;
+ }
}
#endif // wxUSE_STREAMS && wxUSE_PROTOCOL_FILE