diff options
author | xli24 <xli24@6f19259b-4bc3-4df7-8a09-765794883524> | 2009-01-22 05:03:14 +0000 |
---|---|---|
committer | xli24 <xli24@6f19259b-4bc3-4df7-8a09-765794883524> | 2009-01-22 05:03:14 +0000 |
commit | 7a79628e35e12594a1176225878cd73071a5d214 (patch) | |
tree | bb46c931fa174a58b6d9799f016eae6b30a84146 /MdeModulePkg/Bus | |
parent | f67cc2c229760faf0f8b24e5c846abc41a3d993b (diff) | |
download | edk2-7a79628e35e12594a1176225878cd73071a5d214.zip edk2-7a79628e35e12594a1176225878cd73071a5d214.tar.gz edk2-7a79628e35e12594a1176225878cd73071a5d214.tar.bz2 |
Add check for NULL pointer.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@7344 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdeModulePkg/Bus')
-rw-r--r-- | MdeModulePkg/Bus/Usb/UsbKbDxe/KeyBoard.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/MdeModulePkg/Bus/Usb/UsbKbDxe/KeyBoard.c b/MdeModulePkg/Bus/Usb/UsbKbDxe/KeyBoard.c index 48972ae..e5a5599 100644 --- a/MdeModulePkg/Bus/Usb/UsbKbDxe/KeyBoard.c +++ b/MdeModulePkg/Bus/Usb/UsbKbDxe/KeyBoard.c @@ -1196,6 +1196,7 @@ KeyboardHandler ( RemoveKeyCode (&(UsbKeyboardDevice->KeyboardBuffer), &UsbKey);
KeyDescriptor = GetKeyDescriptor (UsbKeyboardDevice, UsbKey.KeyCode);
+ ASSERT (KeyDescriptor != NULL);
switch (KeyDescriptor->Modifier) {
|