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:
@@ -1196,6 +1196,7 @@ KeyboardHandler (
|
||||
RemoveKeyCode (&(UsbKeyboardDevice->KeyboardBuffer), &UsbKey);
|
||||
|
||||
KeyDescriptor = GetKeyDescriptor (UsbKeyboardDevice, UsbKey.KeyCode);
|
||||
ASSERT (KeyDescriptor != NULL);
|
||||
|
||||
switch (KeyDescriptor->Modifier) {
|
||||
|
||||
|
Reference in New Issue
Block a user