Windows XP does not always include the executable file name on the

command line.
This commit is contained in:
Jan Nieuwenhuizen 2005-10-26 10:07:31 +00:00 committed by Alexandre Julliard
parent 137e54dd51
commit ea48acb5be

View file

@ -238,11 +238,10 @@ static void HandleCommandLine(LPWSTR cmdline)
/* skip executable name */ /* skip executable name */
delimiter = (*cmdline == '"' ? '"' : ' '); delimiter = (*cmdline == '"' ? '"' : ' ');
do if (*cmdline == delimiter) cmdline++;
{
cmdline++; while (*cmdline && *cmdline != delimiter) cmdline++;
}
while (*cmdline && *cmdline != delimiter);
if (*cmdline == delimiter) cmdline++; if (*cmdline == delimiter) cmdline++;
while (*cmdline == ' ' || *cmdline == '-' || *cmdline == '/') while (*cmdline == ' ' || *cmdline == '-' || *cmdline == '/')