Pass correct device path to uninstall the handle on which default config access protocol is installed.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@8044 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
rsun3 2009-04-09 07:23:22 +00:00
parent 8141eea5fa
commit 647a768d85
1 changed files with 10 additions and 2 deletions

View File

@ -274,7 +274,8 @@ UninstallDefaultConfigAccessProtocol (
{
EFI_STATUS Status;
EFI_HII_CONFIG_ACCESS_PROTOCOL *ConfigAccess;
HII_VENDOR_DEVICE_PATH *HiiVendorPath;
Status = gBS->HandleProtocol (
ThunkContext->UefiHiiDriverHandle,
&gEfiHiiConfigAccessProtocolGuid,
@ -282,10 +283,17 @@ UninstallDefaultConfigAccessProtocol (
);
ASSERT_EFI_ERROR (Status);
Status = gBS->HandleProtocol (
ThunkContext->UefiHiiDriverHandle,
&gEfiDevicePathProtocolGuid,
(VOID **) &HiiVendorPath
);
ASSERT_EFI_ERROR (Status);
Status = gBS->UninstallMultipleProtocolInterfaces (
ThunkContext->UefiHiiDriverHandle,
&gEfiDevicePathProtocolGuid,
&mUefiHiiVendorDevicePath,
HiiVendorPath,
&gEfiHiiConfigAccessProtocolGuid,
ConfigAccess,
NULL