]> git.saurik.com Git - wxWidgets.git/commitdiff
fixed UNC paths handling (patch #975038)
authorVáclav Slavík <vslavik@fastmail.fm>
Wed, 23 Jun 2004 22:20:12 +0000 (22:20 +0000)
committerVáclav Slavík <vslavik@fastmail.fm>
Wed, 23 Jun 2004 22:20:12 +0000 (22:20 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27988 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

docs/changes.txt
src/common/filesys.cpp

index 1f6c6e447bff77af9c68852cd5efff4cc5ba619f..d6efbf31c2c651966e11ee336992bf12f7504807 100644 (file)
@@ -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
index cfdcb943353dead5b9be1de93d97406c1c8bbb4b..814d17d6a6dbd4f5dbec199443c35c51ec60308c 100644 (file)
@@ -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
     {