mirror of
git://source.winehq.org/git/wine.git
synced 2024-08-31 13:55:35 +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 */
|
/* 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