X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/34e0d9f874fe4ba3dd8112a68831cb20bb80cac7..ce76f779c6cfd2155de825021cc645572fe43625:/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