a fix to preserve UNC paths when creating the commandline argument array

tested with Borland/wxMSW; existing behaviour of replacing \\ with \ preserved
except at start of string


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15945 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Chris Elliott
2002-06-24 20:09:46 +00:00
parent fc5d3e42d8
commit 009f8ef4a3

View File

@@ -1040,7 +1040,8 @@ wxArrayString wxCmdLineParser::ConvertStringToArgs(const wxChar *p)
p++; p++;
// if we have 2 backslashes in a row, output one // if we have 2 backslashes in a row, output one
if ( isQuotedByBS ) // unless it looks like a UNC path \\machine\dir\file.ext
if ( isQuotedByBS || arg.Len() == 0 )
{ {
arg += _T('\\'); arg += _T('\\');
isQuotedByBS = FALSE; isQuotedByBS = FALSE;