git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9173
6f19259b-4bc3-4df7-8a09-
765794883524
if (UsbKeyboardDevice->SimpleInputEx.WaitForKeyEx != NULL) {\r
gBS->CloseEvent (UsbKeyboardDevice->SimpleInputEx.WaitForKeyEx);\r
}\r
+ if (UsbKeyboardDevice->KeyboardLayoutEvent != NULL) {\r
+ gBS->CloseEvent (UsbKeyboardDevice->KeyboardLayoutEvent);\r
+ }\r
+ if (UsbKeyboardDevice->KeyConvertionTable != NULL) {\r
+ FreePool (UsbKeyboardDevice->KeyConvertionTable);\r
+ }\r
FreePool (UsbKeyboardDevice);\r
UsbKeyboardDevice = NULL;\r
}\r
UINT8 KeyCode;\r
\r
UsbKeyboardDevice = (USB_KB_DEV *) Context;\r
+ if (UsbKeyboardDevice->Signature != USB_KB_DEV_SIGNATURE) {\r
+ return;\r
+ }\r
\r
//\r
// Try to get current keyboard layout from HII database\r