X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=ShellPkg%2FLibrary%2FUefiShellLevel1CommandsLib%2FExit.c;fp=ShellPkg%2FLibrary%2FUefiShellLevel1CommandsLib%2FExit.c;h=3a3c59fa0396eed88f65d4066309a78c3c4c5ddb;hb=b6b22b132ada04696a0f7481a12169808c3e2b3e;hp=5620d023b1223ac05e32d5a9bc330343ce137a8b;hpb=a0248b09366c096be88a2fbaaff071b28b5d4ca5;p=mirror_edk2.git diff --git a/ShellPkg/Library/UefiShellLevel1CommandsLib/Exit.c b/ShellPkg/Library/UefiShellLevel1CommandsLib/Exit.c index 5620d023b1..3a3c59fa03 100644 --- a/ShellPkg/Library/UefiShellLevel1CommandsLib/Exit.c +++ b/ShellPkg/Library/UefiShellLevel1CommandsLib/Exit.c @@ -77,16 +77,16 @@ ShellCommandRunExit ( // // If we are in a batch file and /b then pass TRUE otherwise false... // - ShellCommandRegisterExit((BOOLEAN)(gEfiShellProtocol->BatchIsActive() && ShellCommandLineGetFlag(Package, L"/b"))); + ShellCommandRegisterExit((BOOLEAN)(gEfiShellProtocol->BatchIsActive() && ShellCommandLineGetFlag(Package, L"/b")), RetVal); - ShellStatus = (SHELL_STATUS)(RetVal); + ShellStatus = SHELL_SUCCESS; } } else { // If we are in a batch file and /b then pass TRUE otherwise false... // - ShellCommandRegisterExit((BOOLEAN)(gEfiShellProtocol->BatchIsActive() && ShellCommandLineGetFlag(Package, L"/b"))); + ShellCommandRegisterExit((BOOLEAN)(gEfiShellProtocol->BatchIsActive() && ShellCommandLineGetFlag(Package, L"/b")), 0); - ShellStatus = (SHELL_STATUS)0; + ShellStatus = SHELL_SUCCESS; } ShellCommandLineFreeVarList (Package);