/*
This function is mainly used under Windows (as under Unix we always get the
- command line arguments as agrc/argv anyhow) and so it tries to handle the
+ command line arguments as argc/argv anyhow) and so it tries to handle the
Windows path names (separated by backslashes) correctly. For this it only
considers that a backslash may be used to escape another backslash (but
normally this is _not_ needed) or a quote but nothing else.
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;