diff options
author | Eric Dong <eric.dong@intel.com> | 2015-05-06 09:29:39 +0000 |
---|---|---|
committer | ydong10 <ydong10@Edk2> | 2015-05-06 09:29:39 +0000 |
commit | 790447b2a515cdce5b13b8bf6e49785aaa58723b (patch) | |
tree | f1560570703be404c2698163ffffb7d6a12f9f62 /MdeModulePkg/Universal/SetupBrowserDxe/IfrParse.c | |
parent | e2a5feb9d6c468c0ddb0caed2581d10585819db5 (diff) | |
download | edk2-790447b2a515cdce5b13b8bf6e49785aaa58723b.zip edk2-790447b2a515cdce5b13b8bf6e49785aaa58723b.tar.gz edk2-790447b2a515cdce5b13b8bf6e49785aaa58723b.tar.bz2 |
MdeModluePkg: Enable refresh opcode to refresh the entire form.
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Eric Dong <eric.dong@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17334 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdeModulePkg/Universal/SetupBrowserDxe/IfrParse.c')
-rw-r--r-- | MdeModulePkg/Universal/SetupBrowserDxe/IfrParse.c | 20 |
1 files changed, 18 insertions, 2 deletions
diff --git a/MdeModulePkg/Universal/SetupBrowserDxe/IfrParse.c b/MdeModulePkg/Universal/SetupBrowserDxe/IfrParse.c index 0e9c823..a4a2478 100644 --- a/MdeModulePkg/Universal/SetupBrowserDxe/IfrParse.c +++ b/MdeModulePkg/Universal/SetupBrowserDxe/IfrParse.c @@ -2479,8 +2479,24 @@ ParseOpCodes ( // Refresh guid.
//
case EFI_IFR_REFRESH_ID_OP:
- ASSERT (ParentStatement != NULL);
- CopyMem (&ParentStatement->RefreshGuid, &((EFI_IFR_REFRESH_ID *) OpCodeData)->RefreshEventGroupId, sizeof (EFI_GUID));
+ //
+ // Get ScopeOpcode from top of stack
+ //
+ PopScope (&ScopeOpCode);
+ PushScope (ScopeOpCode);
+
+ switch (ScopeOpCode) {
+ case EFI_IFR_FORM_OP:
+ case EFI_IFR_FORM_MAP_OP:
+ ASSERT (CurrentForm != NULL);
+ CopyMem (&CurrentForm->RefreshGuid, &((EFI_IFR_REFRESH_ID *) OpCodeData)->RefreshEventGroupId, sizeof (EFI_GUID));
+ break;
+
+ default:
+ ASSERT (ParentStatement != NULL);
+ CopyMem (&ParentStatement->RefreshGuid, &((EFI_IFR_REFRESH_ID *) OpCodeData)->RefreshEventGroupId, sizeof (EFI_GUID));
+ break;
+ }
break;
//
|