diff options
author | ydong10 <ydong10@6f19259b-4bc3-4df7-8a09-765794883524> | 2011-07-12 07:24:36 +0000 |
---|---|---|
committer | ydong10 <ydong10@6f19259b-4bc3-4df7-8a09-765794883524> | 2011-07-12 07:24:36 +0000 |
commit | cce6230ffb5981caab05cfcb500c9217db2a6963 (patch) | |
tree | 8b149ec0c2de6fbbc0e712eadafebe7c45dc4735 /MdeModulePkg/Universal/SetupBrowserDxe/Expression.c | |
parent | d23610ebbc91a1eff5dbb2cbf1921ad41e925279 (diff) | |
download | edk2-platforms-cce6230ffb5981caab05cfcb500c9217db2a6963.tar.xz |
Change the HiiDataBase and browser codes to support new efi varstore data structure.
Signed-off-by:ydong10
Reviewed-by:lgao4
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12009 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdeModulePkg/Universal/SetupBrowserDxe/Expression.c')
-rw-r--r-- | MdeModulePkg/Universal/SetupBrowserDxe/Expression.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/MdeModulePkg/Universal/SetupBrowserDxe/Expression.c b/MdeModulePkg/Universal/SetupBrowserDxe/Expression.c index 5d0339a040..cbbb20dc9f 100644 --- a/MdeModulePkg/Universal/SetupBrowserDxe/Expression.c +++ b/MdeModulePkg/Universal/SetupBrowserDxe/Expression.c @@ -1716,6 +1716,7 @@ EvaluateExpression ( if (OpCode->VarStorage != NULL) {
switch (OpCode->VarStorage->Type) {
case EFI_HII_VARSTORE_BUFFER:
+ case EFI_HII_VARSTORE_EFI_VARIABLE_BUFFER:
//
// Get value from Edit Buffer
//
@@ -1765,6 +1766,7 @@ EvaluateExpression ( Value->Type = EFI_IFR_TYPE_UNDEFINED;
Value->Value.u8 = 0;
}
+ break;
default:
//
// Not recognize storage.
@@ -2123,6 +2125,7 @@ EvaluateExpression ( if (OpCode->VarStorage != NULL) {
switch (OpCode->VarStorage->Type) {
case EFI_HII_VARSTORE_BUFFER:
+ case EFI_HII_VARSTORE_EFI_VARIABLE_BUFFER:
CopyMem (OpCode->VarStorage->EditBuffer + OpCode->VarStoreInfo.VarOffset, &Value->Value, OpCode->ValueWidth);
Data1.Value.b = TRUE;
break;
|