From 647a768d85b0badd16ea13f89593657211e26837 Mon Sep 17 00:00:00 2001 From: rsun3 Date: Thu, 9 Apr 2009 07:23:22 +0000 Subject: [PATCH] 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 --- .../FrameworkHiiOnUefiHiiThunk/ConfigAccess.c | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/EdkCompatibilityPkg/Compatibility/FrameworkHiiOnUefiHiiThunk/ConfigAccess.c b/EdkCompatibilityPkg/Compatibility/FrameworkHiiOnUefiHiiThunk/ConfigAccess.c index 16630b4b7c..117d6ea636 100644 --- a/EdkCompatibilityPkg/Compatibility/FrameworkHiiOnUefiHiiThunk/ConfigAccess.c +++ b/EdkCompatibilityPkg/Compatibility/FrameworkHiiOnUefiHiiThunk/ConfigAccess.c @@ -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