cmd.exe: Support return code if fail to launch program.

This commit is contained in:
Jason Edmeades 2007-02-20 18:03:32 +00:00 committed by Alexandre Julliard
parent 73587989e7
commit 3bdb64149b
1 changed files with 3 additions and 0 deletions

View File

@ -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;