Pass ECC check.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@7455 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
xli24 2009-02-06 05:34:53 +00:00
parent a676b86b67
commit ed3a31b518
1 changed files with 2 additions and 2 deletions

View File

@ -611,7 +611,7 @@ SetKeyboardLayoutEvent (
NsKey = KeyDescriptor + 1;
for (Index2 = Index + 1; Index2 < KeyboardLayout->DescriptorCount; Index2++) {
CopyMem (&TempKey, NsKey, sizeof (EFI_KEY_DESCRIPTOR));
if (TempKey.Modifier & EFI_NS_KEY_DEPENDENCY_MODIFIER) {
if (TempKey.Modifier == EFI_NS_KEY_DEPENDENCY_MODIFIER) {
KeyCount++;
} else {
break;
@ -1654,7 +1654,7 @@ UsbKeyCodeToEfiInputKey (
}
}
if (KeyDescriptor->AffectedAttribute & EFI_AFFECTED_BY_NUM_LOCK) {
if ((KeyDescriptor->AffectedAttribute & EFI_AFFECTED_BY_NUM_LOCK) != 0) {
//
// For key affected by NumLock, if NumLock is on and Shift is not pressed, then it means
// normal key, instead of original control key. So the ScanCode should be cleaned.