]> git.saurik.com Git - wxWidgets.git/commitdiff
Do return the protocol part from GetLocaltion() for local wxFSFiles.
authorVadim Zeitlin <vadim@wxwidgets.org>
Tue, 9 Oct 2012 21:28:33 +0000 (21:28 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Tue, 9 Oct 2012 21:28:33 +0000 (21:28 +0000)
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

src/common/filesys.cpp

index f4533871e248fb0efa1f889f4dc96de48445a9f0..ad395361ce947979b2452755ace8d5de514dc72f 100644 (file)
@@ -262,7 +262,7 @@ wxFSFile* wxLocalFSHandler::OpenFile(wxFileSystem& WXUNUSED(fs), const wxString&
     }
 
     return new wxFSFile(is,
-                        right,
+                        location,
                         wxEmptyString,
                         GetAnchor(location)
 #if wxUSE_DATETIME