cmd.exe: Support return code if fail to launch program.
This commit is contained in:
parent
73587989e7
commit
3bdb64149b
|
@ -662,6 +662,9 @@ char filetorun[MAX_PATH];
|
|||
}
|
||||
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 (!console) errorlevel = 0;
|
||||
|
|
Loading…
Reference in New Issue