X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=blobdiff_plain;f=ShellPkg%2FLibrary%2FUefiShellLevel3CommandsLib%2FPause.c;h=d6ed793579d430edce72be83f33fbc59e339d41b;hp=facacaac7dee6e47868392540244c9b1c4e4d6a9;hb=a49f6a2f7e0d0141519c136905ce70038573ce40;hpb=f6ea51e5ac7195f550cdabacc088597d3f63b6e2 diff --git a/ShellPkg/Library/UefiShellLevel3CommandsLib/Pause.c b/ShellPkg/Library/UefiShellLevel3CommandsLib/Pause.c index facacaac7d..d6ed793579 100644 --- a/ShellPkg/Library/UefiShellLevel3CommandsLib/Pause.c +++ b/ShellPkg/Library/UefiShellLevel3CommandsLib/Pause.c @@ -82,9 +82,8 @@ ShellCommandRunPause ( } else { Status = ShellPromptForResponse(ShellPromptResponseTypeQuitContinue, NULL, (VOID**)&Resp); } - ASSERT_EFI_ERROR(Status); - if (Resp == NULL || *Resp == ShellPromptResponseQuit) { + if (EFI_ERROR(Status) || Resp == NULL || *Resp == ShellPromptResponseQuit) { ShellCommandRegisterExit(TRUE); ShellStatus = SHELL_ABORTED; }