1. free those inserted NsKeyNode resource when releasing SetKeyBoardLayout event.

2. cleanup HiiDataBaseDxe to directly use gEfiHiiKeyBoardLayoutGuid which is used as the guid of event group.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9978 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
erictian
2010-02-11 02:47:10 +00:00
parent 4140a6635b
commit ea02100237
3 changed files with 8 additions and 6 deletions

View File

@@ -395,11 +395,9 @@ ErrorExit:
gBS->CloseEvent (UsbKeyboardDevice->SimpleInputEx.WaitForKeyEx);
}
if (UsbKeyboardDevice->KeyboardLayoutEvent != NULL) {
ReleaseKeyboardLayoutResources (UsbKeyboardDevice);
gBS->CloseEvent (UsbKeyboardDevice->KeyboardLayoutEvent);
}
if (UsbKeyboardDevice->KeyConvertionTable != NULL) {
FreePool (UsbKeyboardDevice->KeyConvertionTable);
}
FreePool (UsbKeyboardDevice);
UsbKeyboardDevice = NULL;
}