From: Vadim Zeitlin Date: Tue, 9 Oct 2012 21:28:33 +0000 (+0000) Subject: Do return the protocol part from GetLocaltion() for local wxFSFiles. X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/4d4e7a8a7393bcf1932e61fdc85f56047f82ad08?ds=inline Do return the protocol part from GetLocaltion() for local wxFSFiles. wxLocalFSHandler created wxFSFile without the protocol information which means that calling GetLocaltion() on this file later doesn't return it, contrary to the documentation. Do include the protocol to fix this. Closes #14638. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72649 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/common/filesys.cpp b/src/common/filesys.cpp index f4533871e2..ad395361ce 100644 --- a/src/common/filesys.cpp +++ b/src/common/filesys.cpp @@ -262,7 +262,7 @@ wxFSFile* wxLocalFSHandler::OpenFile(wxFileSystem& WXUNUSED(fs), const wxString& } return new wxFSFile(is, - right, + location, wxEmptyString, GetAnchor(location) #if wxUSE_DATETIME