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;