mirror of
https://github.com/reactos/wine.git
synced 2024-11-25 20:59:54 +00:00
Windows XP does not always include the executable file name on the
command line.
This commit is contained in:
parent
137e54dd51
commit
ea48acb5be
@ -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 == '/')
|
||||
|
Loading…
Reference in New Issue
Block a user