mirror of
https://github.com/acidanthera/audk.git
synced 2025-07-23 21:54:27 +02:00
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:
parent
8141eea5fa
commit
647a768d85
@ -274,6 +274,7 @@ UninstallDefaultConfigAccessProtocol (
|
|||||||
{
|
{
|
||||||
EFI_STATUS Status;
|
EFI_STATUS Status;
|
||||||
EFI_HII_CONFIG_ACCESS_PROTOCOL *ConfigAccess;
|
EFI_HII_CONFIG_ACCESS_PROTOCOL *ConfigAccess;
|
||||||
|
HII_VENDOR_DEVICE_PATH *HiiVendorPath;
|
||||||
|
|
||||||
Status = gBS->HandleProtocol (
|
Status = gBS->HandleProtocol (
|
||||||
ThunkContext->UefiHiiDriverHandle,
|
ThunkContext->UefiHiiDriverHandle,
|
||||||
@ -282,10 +283,17 @@ UninstallDefaultConfigAccessProtocol (
|
|||||||
);
|
);
|
||||||
ASSERT_EFI_ERROR (Status);
|
ASSERT_EFI_ERROR (Status);
|
||||||
|
|
||||||
|
Status = gBS->HandleProtocol (
|
||||||
|
ThunkContext->UefiHiiDriverHandle,
|
||||||
|
&gEfiDevicePathProtocolGuid,
|
||||||
|
(VOID **) &HiiVendorPath
|
||||||
|
);
|
||||||
|
ASSERT_EFI_ERROR (Status);
|
||||||
|
|
||||||
Status = gBS->UninstallMultipleProtocolInterfaces (
|
Status = gBS->UninstallMultipleProtocolInterfaces (
|
||||||
ThunkContext->UefiHiiDriverHandle,
|
ThunkContext->UefiHiiDriverHandle,
|
||||||
&gEfiDevicePathProtocolGuid,
|
&gEfiDevicePathProtocolGuid,
|
||||||
&mUefiHiiVendorDevicePath,
|
HiiVendorPath,
|
||||||
&gEfiHiiConfigAccessProtocolGuid,
|
&gEfiHiiConfigAccessProtocolGuid,
|
||||||
ConfigAccess,
|
ConfigAccess,
|
||||||
NULL
|
NULL
|
||||||
|
Loading…
x
Reference in New Issue
Block a user