From: Fu Siyuan Date: Mon, 25 Nov 2013 06:40:34 +0000 (+0000) Subject: Refine the Secure Boot UI driver to input the GUID and varstroe name when using HiiSe... X-Git-Tag: edk2-stable201903~12060 X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=commitdiff_plain;h=742d9b3a385adcaaa1b28d3c275ccccc087bc6ed Refine the Secure Boot UI driver to input the GUID and varstroe name when using HiiSetBrowserData/HiiGetBrowserData. Signed-off-by: Fu Siyuan Reviewed-by: Dong, Eric Reviewed-by: Dong, Guo git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14897 6f19259b-4bc3-4df7-8a09-765794883524 --- diff --git a/SecurityPkg/VariableAuthenticated/SecureBootConfigDxe/SecureBootConfigImpl.c b/SecurityPkg/VariableAuthenticated/SecureBootConfigDxe/SecureBootConfigImpl.c index e8af62de4a..0911630946 100644 --- a/SecurityPkg/VariableAuthenticated/SecureBootConfigDxe/SecureBootConfigImpl.c +++ b/SecurityPkg/VariableAuthenticated/SecureBootConfigDxe/SecureBootConfigImpl.c @@ -2537,7 +2537,7 @@ SecureBootCallback ( Status = EFI_SUCCESS; - HiiGetBrowserData (NULL, NULL, BufferSize, (UINT8 *) IfrNvData); + HiiGetBrowserData (&gSecureBootConfigFormSetGuid, mSecureBootStorageName, BufferSize, (UINT8 *) IfrNvData); if (Action == EFI_BROWSER_ACTION_CHANGING) { @@ -2850,7 +2850,7 @@ SecureBootCallback ( if (!EFI_ERROR (Status)) { BufferSize = sizeof (SECUREBOOT_CONFIGURATION); - HiiSetBrowserData (NULL, NULL, BufferSize, (UINT8*) IfrNvData, NULL); + HiiSetBrowserData (&gSecureBootConfigFormSetGuid, mSecureBootStorageName, BufferSize, (UINT8*) IfrNvData, NULL); } FreePool (IfrNvData);