Changeset 80721 in vbox for trunk/src/VBox/Devices/EFI/FirmwareNew/MdeModulePkg/Universal/SetupBrowserDxe/Presentation.c
- Timestamp:
- Sep 11, 2019 8:46:37 AM (5 years ago)
- Location:
- trunk/src/VBox/Devices/EFI/FirmwareNew
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/EFI/FirmwareNew
-
Property svn:mergeinfo
changed from (toggle deleted branches)
to (toggle deleted branches)/vendor/edk2/current 103735-103757,103769-103776,129194-129237 /vendor/edk2/current 103735-103757,103769-103776,129194-133213
-
Property svn:mergeinfo
changed from (toggle deleted branches)
-
trunk/src/VBox/Devices/EFI/FirmwareNew/MdeModulePkg/Universal/SetupBrowserDxe/Presentation.c
r77662 r80721 2 2 Utility functions for UI presentation. 3 3 4 Copyright (c) 2004 - 201 7, Intel Corporation. All rights reserved.<BR>4 Copyright (c) 2004 - 2018, Intel Corporation. All rights reserved.<BR> 5 5 (C) Copyright 2015 Hewlett Packard Enterprise Development LP<BR> 6 This program and the accompanying materials 7 are licensed and made available under the terms and conditions of the BSD License 8 which accompanies this distribution. The full text of the license may be found at 9 http://opensource.org/licenses/bsd-license.php 10 11 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, 12 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. 6 SPDX-License-Identifier: BSD-2-Clause-Patent 13 7 14 8 **/ … … 26 20 FORM_DISPLAY_ENGINE_FORM gDisplayFormData; 27 21 BOOLEAN mFinishRetrieveCall = FALSE; 22 23 /** 24 Check whether the ConfigAccess protocol is available. 25 26 @param FormSet FormSet of which the ConfigAcces protocol need to be checked. 27 28 @retval EFI_SUCCESS The function executed successfully. 29 30 **/ 31 EFI_STATUS 32 CheckConfigAccess( 33 IN FORM_BROWSER_FORMSET *FormSet 34 ) 35 { 36 EFI_STATUS Status; 37 38 Status = gBS->HandleProtocol ( 39 FormSet->DriverHandle, 40 &gEfiHiiConfigAccessProtocolGuid, 41 (VOID **) &FormSet->ConfigAccess 42 ); 43 if (EFI_ERROR (Status)) { 44 // 45 // Configuration Driver don't attach ConfigAccess protocol to its HII package 46 // list, then there will be no configuration action required. 47 // Or the ConfigAccess protocol has been uninstalled. 48 // 49 FormSet->ConfigAccess = NULL; 50 } 51 52 return EFI_SUCCESS; 53 } 28 54 29 55 /** … … 1693 1719 } 1694 1720 1721 CheckConfigAccess(gCurrentSelection->FormSet); 1722 1695 1723 Status = ProcessUserInput (&UserInput); 1696 1724 FreeDisplayFormData(); … … 2005 2033 if (Action == EFI_BROWSER_ACTION_CHANGING) { 2006 2034 if (HiiValue->Type == EFI_IFR_TYPE_BUFFER) { 2007 BackUpBuffer = AllocateCopyPool(Statement->StorageWidth + sizeof(CHAR16), Statement->BufferValue);2035 BackUpBuffer = AllocateCopyPool(Statement->StorageWidth, Statement->BufferValue); 2008 2036 ASSERT (BackUpBuffer != NULL); 2009 2037 } else { … … 2131 2159 if (Action == EFI_BROWSER_ACTION_CHANGING && Status == EFI_UNSUPPORTED) { 2132 2160 if (HiiValue->Type == EFI_IFR_TYPE_BUFFER) { 2133 CopyMem (Statement->BufferValue, BackUpBuffer, Statement->StorageWidth + sizeof(CHAR16));2161 CopyMem (Statement->BufferValue, BackUpBuffer, Statement->StorageWidth); 2134 2162 } else { 2135 2163 CopyMem (&HiiValue->Value, &BackUpValue, sizeof (EFI_IFR_TYPE_VALUE));
Note:
See TracChangeset
for help on using the changeset viewer.