//\r
// If we are in a batch file and /b then pass TRUE otherwise false...\r
//\r
- ShellCommandRegisterExit((BOOLEAN)(gEfiShellProtocol->BatchIsActive() && ShellCommandLineGetFlag(Package, L"/b")));\r
+ ShellCommandRegisterExit((BOOLEAN)(gEfiShellProtocol->BatchIsActive() && ShellCommandLineGetFlag(Package, L"/b")), RetVal);\r
\r
- ShellStatus = (SHELL_STATUS)(RetVal);\r
+ ShellStatus = SHELL_SUCCESS;\r
}\r
} else {\r
// If we are in a batch file and /b then pass TRUE otherwise false...\r
//\r
- ShellCommandRegisterExit((BOOLEAN)(gEfiShellProtocol->BatchIsActive() && ShellCommandLineGetFlag(Package, L"/b")));\r
+ ShellCommandRegisterExit((BOOLEAN)(gEfiShellProtocol->BatchIsActive() && ShellCommandLineGetFlag(Package, L"/b")), 0);\r
\r
- ShellStatus = (SHELL_STATUS)0;\r
+ ShellStatus = SHELL_SUCCESS;\r
}\r
\r
ShellCommandLineFreeVarList (Package);\r