mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-31 08:49:15 +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
1 changed files with 4 additions and 5 deletions
|
@ -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 == '/')
|
||||||
|
|
Loading…
Reference in a new issue