]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/cmdline.cpp
fixed some pesky compile warnings, hope this doesn't nuke some
[wxWidgets.git] / src / common / cmdline.cpp
index b25e322760577f546f8d483e58dedd92c7906b09..fd6c8f6c54c3f81a367d7561ce2c6d7abec85f77 100644 (file)
@@ -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;