cmd: Break out of the argument scan loop (Coverity).
This commit is contained in:
parent
265c959ed9
commit
f62218fc66
|
@ -1153,13 +1153,10 @@ void WCMD_run_program (WCHAR *command, int called) {
|
||||||
WCMD_run_program(command, called);
|
WCMD_run_program(command, called);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (!status) {
|
|
||||||
WCMD_print_error ();
|
if (!status)
|
||||||
/* If a command fails to launch, it sets errorlevel 9009 - which
|
break;
|
||||||
does not seem to have any associated constant definition */
|
|
||||||
errorlevel = 9009;
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
if (!assumeInternal && !console) errorlevel = 0;
|
if (!assumeInternal && !console) errorlevel = 0;
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue