From 60c315ca1bbcfba12ccd713d2085bd2c138c7886 Mon Sep 17 00:00:00 2001 From: =?utf8?q?V=C3=A1clav=20Slav=C3=ADk?= Date: Wed, 23 Jun 2004 22:20:12 +0000 Subject: [PATCH] fixed UNC paths handling (patch #975038) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27988 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- docs/changes.txt | 4 ++++ src/common/filesys.cpp | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/docs/changes.txt b/docs/changes.txt index 1f6c6e447b..d6efbf31c2 100644 --- a/docs/changes.txt +++ b/docs/changes.txt @@ -139,6 +139,10 @@ wxMotif: - added 3 state checkbox +wxMSW: + +- fixed UNC paths handling in wxFileSystem (Daniel Nash) + wxWinCE: - added automatized but customizable handling of native SmartPhone menus diff --git a/src/common/filesys.cpp b/src/common/filesys.cpp index cfdcb94335..814d17d6a6 100644 --- a/src/common/filesys.cpp +++ b/src/common/filesys.cpp @@ -519,7 +519,7 @@ wxString wxFileSystem::FileNameToURL(const wxFileName& filename) // unc notation, wxMSW if ( url.Find(wxT("\\\\")) == 0 ) { - url = url.Mid(2); + url = wxT("//") + url.Mid(2); } else { -- 2.45.2