summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
dac7d53)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@18092
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
// file urls either start with a forward slash (local harddisk),
// otherwise they have a servername/sharename notation,
// which only exists on msw and corresponds to a unc
// file urls either start with a forward slash (local harddisk),
// otherwise they have a servername/sharename notation,
// which only exists on msw and corresponds to a unc
else if ( (url.Find(wxT("file://")) == 0) &&
(path.Find(wxT('/')) != wxNOT_FOUND) &&
(path.Length() > 1) && (path[1u] != wxT(':')) )
{
else if ( (url.Find(wxT("file://")) == 0) &&
(path.Find(wxT('/')) != wxNOT_FOUND) &&
(path.Length() > 1) && (path[1u] != wxT(':')) )
{
- path = wxT("\\\\") + path ;
+ path = wxT("//") + path ;
path.Replace(g_unixPathString, g_nativePathString) ;
path.Replace(g_unixPathString, g_nativePathString) ;
#ifdef __WXMSW__
// unc notation
if ( url.Find(wxT("\\\\")) == 0 )
#ifdef __WXMSW__
// unc notation
if ( url.Find(wxT("\\\\")) == 0 )
{
url = wxT("/") + url ;
}
{
url = wxT("/") + url ;
}
url.Replace(g_nativePathString, g_unixPathString) ;
url = wxT("file://") + url ;
url.Replace(g_nativePathString, g_unixPathString) ;
url = wxT("file://") + url ;