Add check for NULL pointer.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@7344 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
xli24 2009-01-22 05:03:14 +00:00
parent f67cc2c229
commit 7a79628e35

@ -1196,6 +1196,7 @@ KeyboardHandler (
RemoveKeyCode (&(UsbKeyboardDevice->KeyboardBuffer), &UsbKey);
KeyDescriptor = GetKeyDescriptor (UsbKeyboardDevice, UsbKey.KeyCode);
ASSERT (KeyDescriptor != NULL);
switch (KeyDescriptor->Modifier) {