Fixed the beggar good and proper
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@18171 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -459,8 +459,8 @@ wxString wxFileSystem::FileNameToURL(const wxFileName& filename)
|
|||||||
fn.Normalize(wxPATH_NORM_DOTS | wxPATH_NORM_TILDE | wxPATH_NORM_ABSOLUTE);
|
fn.Normalize(wxPATH_NORM_DOTS | wxPATH_NORM_TILDE | wxPATH_NORM_ABSOLUTE);
|
||||||
wxString url = fn.GetFullPath(wxPATH_NATIVE);
|
wxString url = fn.GetFullPath(wxPATH_NATIVE);
|
||||||
|
|
||||||
#ifdef __WXMSW__
|
#ifndef __UNIX__
|
||||||
// unc notation
|
// unc notation, wxMSW
|
||||||
if ( url.Find(wxT("\\\\")) == 0 )
|
if ( url.Find(wxT("\\\\")) == 0 )
|
||||||
{
|
{
|
||||||
url = url.Mid(2);
|
url = url.Mid(2);
|
||||||
|
Reference in New Issue
Block a user