diff options
author | xli24 <xli24@6f19259b-4bc3-4df7-8a09-765794883524> | 2009-02-06 05:34:53 +0000 |
---|---|---|
committer | xli24 <xli24@6f19259b-4bc3-4df7-8a09-765794883524> | 2009-02-06 05:34:53 +0000 |
commit | ed3a31b51871b92af7174bd78c8d58330d0b0ab3 (patch) | |
tree | ea23beddd6f493d5c02d28d2c5f29a8c461737f8 | |
parent | a676b86b67ac1fcd1e64d814de7f5fc0f63e12de (diff) | |
download | edk2-ed3a31b51871b92af7174bd78c8d58330d0b0ab3.zip edk2-ed3a31b51871b92af7174bd78c8d58330d0b0ab3.tar.gz edk2-ed3a31b51871b92af7174bd78c8d58330d0b0ab3.tar.bz2 |
Pass ECC check.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@7455 6f19259b-4bc3-4df7-8a09-765794883524
-rw-r--r-- | MdeModulePkg/Bus/Usb/UsbKbDxe/KeyBoard.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/MdeModulePkg/Bus/Usb/UsbKbDxe/KeyBoard.c b/MdeModulePkg/Bus/Usb/UsbKbDxe/KeyBoard.c index ae56e74..cf68250 100644 --- a/MdeModulePkg/Bus/Usb/UsbKbDxe/KeyBoard.c +++ b/MdeModulePkg/Bus/Usb/UsbKbDxe/KeyBoard.c @@ -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.
|