Ignore UEFI OPEN/CLOSE Action for FrameworkCallback
authorlgao4 <lgao4@de2fecce-e211-0410-80a6-f3fac2684e05>
Fri, 13 Nov 2009 10:05:52 +0000 (10:05 +0000)
committerlgao4 <lgao4@de2fecce-e211-0410-80a6-f3fac2684e05>
Fri, 13 Nov 2009 10:05:52 +0000 (10:05 +0000)
git-svn-id: https://edk2.tianocore.org/svn/edk2/trunk@9427 de2fecce-e211-0410-80a6-f3fac2684e05

edk2/EdkCompatibilityPkg/Compatibility/FrameworkHiiOnUefiHiiThunk/ConfigAccess.c

index 806759d..2969f6b 100644 (file)
@@ -1006,6 +1006,13 @@ ThunkCallback (
   EFI_INPUT_KEY                               Key;  \r
   BOOLEAN                                     NvMapAllocated;\r
 \r
+  if ((Action == EFI_BROWSER_ACTION_FORM_OPEN) || (Action == EFI_BROWSER_ACTION_FORM_CLOSE)) {\r
+    //\r
+    // Ignore UEFI OPEN/CLOSE Action for FrameworkCallback\r
+    //\r
+    return EFI_SUCCESS;\r
+  }\r
+\r
   ASSERT (This != NULL);\r
   ASSERT (Value != NULL);\r
   ASSERT (ActionRequest != NULL);\r