X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/34e0d9f874fe4ba3dd8112a68831cb20bb80cac7..ecd20d4a916884895dcd8873a9f1156e34f4ac89:/src/common/sckfile.cpp diff --git a/src/common/sckfile.cpp b/src/common/sckfile.cpp index 2e3827ef6c..483f4eb7c8 100644 --- a/src/common/sckfile.cpp +++ b/src/common/sckfile.cpp @@ -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