mirror of
https://github.com/CloverHackyColor/CloverBootloader.git
synced 2024-11-27 12:15:19 +01:00
avoid unused Status and more security checks
Signed-off-by: Sergey Isakov <isakov-sl@bk.ru>
This commit is contained in:
parent
04e32e6f42
commit
e03c8d559f
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user