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) { ...@@ -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
{ {
......
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