avoid unused Status and more security checks

Signed-off-by: Sergey Isakov <isakov-sl@bk.ru>
This commit is contained in:
Sergey Isakov 2019-09-13 14:47:45 +03:00
parent 04e32e6f42
commit e03c8d559f

View File

@ -536,9 +536,11 @@ CreateDialog (
if (Key != NULL) {
Status = WaitForKeyStroke (&KeyValue);
ASSERT_EFI_ERROR (Status);
// ASSERT_EFI_ERROR (Status);
if (!EFI_ERROR(Status)) {
CopyMem(Key, &KeyValue, sizeof(EFI_INPUT_KEY));
}
}
gST->ConOut->SetAttribute (gST->ConOut, CurrentAttribute);
gST->ConOut->EnableCursor (gST->ConOut, CursorVisible);
@ -721,6 +723,9 @@ ClearLines (
//
Buffer = AllocateZeroPool (0x10000);
ASSERT (Buffer != NULL);
if (!Buffer) {
return;
}
//
// Set foreground and background as defined