mirror of
https://github.com/tianocore/edk2
synced 2026-08-27 00:23:19 -04:00
OvmfPkg/VirtioKeyboardDxe: Fix typo in IsKeyRegistered()
Regsiter -> Register No functional change. Signed-off-by: Jiaqing Zhao <Zhao.Jiaqing@amd.com>
This commit is contained in:
parent
0a74b3a4de
commit
ff355e4bdd
1 changed files with 8 additions and 8 deletions
|
|
@ -794,15 +794,15 @@ VirtioKeyboardSetState (
|
|||
|
||||
BOOLEAN
|
||||
IsKeyRegistered (
|
||||
IN EFI_KEY_DATA *RegsiteredData,
|
||||
IN EFI_KEY_DATA *RegisteredData,
|
||||
IN EFI_KEY_DATA *InputData
|
||||
)
|
||||
|
||||
{
|
||||
ASSERT (RegsiteredData != NULL && InputData != NULL);
|
||||
ASSERT (RegisteredData != NULL && InputData != NULL);
|
||||
|
||||
if ((RegsiteredData->Key.ScanCode != InputData->Key.ScanCode) ||
|
||||
(RegsiteredData->Key.UnicodeChar != InputData->Key.UnicodeChar))
|
||||
if ((RegisteredData->Key.ScanCode != InputData->Key.ScanCode) ||
|
||||
(RegisteredData->Key.UnicodeChar != InputData->Key.UnicodeChar))
|
||||
{
|
||||
return FALSE;
|
||||
}
|
||||
|
|
@ -811,14 +811,14 @@ IsKeyRegistered (
|
|||
// Assume KeyShiftState/KeyToggleState = 0 in Registered key data means
|
||||
// these state could be ignored.
|
||||
//
|
||||
if ((RegsiteredData->KeyState.KeyShiftState != 0) &&
|
||||
(RegsiteredData->KeyState.KeyShiftState != InputData->KeyState.KeyShiftState))
|
||||
if ((RegisteredData->KeyState.KeyShiftState != 0) &&
|
||||
(RegisteredData->KeyState.KeyShiftState != InputData->KeyState.KeyShiftState))
|
||||
{
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
if ((RegsiteredData->KeyState.KeyToggleState != 0) &&
|
||||
(RegsiteredData->KeyState.KeyToggleState != InputData->KeyState.KeyToggleState))
|
||||
if ((RegisteredData->KeyState.KeyToggleState != 0) &&
|
||||
(RegisteredData->KeyState.KeyToggleState != InputData->KeyState.KeyToggleState))
|
||||
{
|
||||
return FALSE;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue