cmd: Break out of the argument scan loop (Coverity).

This commit is contained in:
Marcus Meissner 2009-12-04 10:06:13 +01:00 committed by Alexandre Julliard
parent 265c959ed9
commit f62218fc66
1 changed files with 4 additions and 7 deletions

View File

@ -1153,13 +1153,10 @@ void WCMD_run_program (WCHAR *command, int called) {
WCMD_run_program(command, called);
return;
}
if (!status) {
WCMD_print_error ();
/* If a command fails to launch, it sets errorlevel 9009 - which
does not seem to have any associated constant definition */
errorlevel = 9009;
return;
}
if (!status)
break;
if (!assumeInternal && !console) errorlevel = 0;
else
{