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 */
delimiter = (*cmdline == '"' ? '"' : ' ');
do
{
cmdline++;
}
while (*cmdline && *cmdline != delimiter);
if (*cmdline == delimiter) cmdline++;
while (*cmdline && *cmdline != delimiter) cmdline++;
if (*cmdline == delimiter) cmdline++;
while (*cmdline == ' ' || *cmdline == '-' || *cmdline == '/')