X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f2ae0da1b5d52489f21d04e3c8c88c2498aea0e7..ba49d2acf95d53517719c4fd9ac2ad5aaa13540b:/src/common/webviewarchivehandler.cpp diff --git a/src/common/webviewarchivehandler.cpp b/src/common/webviewarchivehandler.cpp index 438426b203..6b9bdd5c24 100644 --- a/src/common/webviewarchivehandler.cpp +++ b/src/common/webviewarchivehandler.cpp @@ -86,7 +86,7 @@ wxFSFile* wxWebViewArchiveHandler::GetFile(const wxString &uri) return NULL; wxString fspath = "file:" + - EscapeFileNameCharsInURL(path.substr(doubleslash + 2)); + EscapeFileNameCharsInURL(path.substr(doubleslash + 2).c_str()); return m_fileSystem->OpenFile(fspath); } //Otherwise we need to extract the protocol @@ -109,7 +109,7 @@ wxFSFile* wxWebViewArchiveHandler::GetFile(const wxString &uri) return NULL; wxString fspath = "file:" + - EscapeFileNameCharsInURL(mainpath.substr(doubleslash + 2)) + EscapeFileNameCharsInURL(mainpath.substr(doubleslash + 2).c_str()) + "#" + protocol +":" + archivepath; return m_fileSystem->OpenFile(fspath); }