From 04d93c3a59ec80ec65f1b41c1d237df181e3978e Mon Sep 17 00:00:00 2001 From: Chris Elliott Date: Tue, 2 Jul 2002 08:41:34 +0000 Subject: [PATCH] UNC fix to directory path git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16001 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/msw/filedlg.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/msw/filedlg.cpp b/src/msw/filedlg.cpp index ac7478a9d8..94a4e60b58 100644 --- a/src/msw/filedlg.cpp +++ b/src/msw/filedlg.cpp @@ -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 -- 2.47.2