]> git.saurik.com Git - wxWidgets.git/commitdiff
UNC fix to directory path
authorChris Elliott <biol75@york.ac.uk>
Tue, 2 Jul 2002 08:41:34 +0000 (08:41 +0000)
committerChris Elliott <biol75@york.ac.uk>
Tue, 2 Jul 2002 08:41:34 +0000 (08:41 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16001 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/msw/filedlg.cpp

index ac7478a9d8406a23f3578fbe7d601a781ba3a90d..94a4e60b5886ab3214796234915d57b730faee75 100644 (file)
@@ -310,8 +310,11 @@ int wxFileDialog::ShowModal()
                     if ( chNext != _T('\\') && chNext != _T('/') )
                         break;
 
-                    // ignore the next one
-                    i++;
+                    // ignore the next one, unless it is at the start of a UNC path
+                    if (i > 0)
+                        i++;
+                    else
+                        break;    
                 }
                 // fall through