X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/bb10b31d43418c3e55fdd78b1c7cc71e2e159db6..2645b45a757dfd92214e8a395398982f4d1bb9fd:/src/common/cmdline.cpp diff --git a/src/common/cmdline.cpp b/src/common/cmdline.cpp index b25e322760..fd6c8f6c54 100644 --- a/src/common/cmdline.cpp +++ b/src/common/cmdline.cpp @@ -1040,7 +1040,8 @@ wxArrayString wxCmdLineParser::ConvertStringToArgs(const wxChar *p) p++; // 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('\\'); isQuotedByBS = FALSE;