mirror of
https://github.com/CloverHackyColor/CloverBootloader.git
synced 2024-11-10 09:40:53 +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,8 +536,10 @@ CreateDialog (
|
||||
|
||||
if (Key != NULL) {
|
||||
Status = WaitForKeyStroke (&KeyValue);
|
||||
ASSERT_EFI_ERROR (Status);
|
||||
CopyMem (Key, &KeyValue, sizeof (EFI_INPUT_KEY));
|
||||
// ASSERT_EFI_ERROR (Status);
|
||||
if (!EFI_ERROR(Status)) {
|
||||
CopyMem(Key, &KeyValue, sizeof(EFI_INPUT_KEY));
|
||||
}
|
||||
}
|
||||
|
||||
gST->ConOut->SetAttribute (gST->ConOut, CurrentAttribute);
|
||||
@ -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