Commit f62218fc authored by Marcus Meissner's avatar Marcus Meissner Committed by Alexandre Julliard

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

parent 265c959e
......@@ -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
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment