- if (OpCodeDisabled) {\r
- //\r
- // DisableIf Expression is evaluated to be TRUE, try to find its end.\r
- // Here only cares the EFI_IFR_DISABLE_IF and EFI_IFR_END\r
- //\r
- if (Operand == EFI_IFR_DISABLE_IF_OP) {\r
- DepthOfDisable++;\r
- } else if (Operand == EFI_IFR_END_OP) {\r
- Status = PopScope (&ScopeOpCode);\r
- if (EFI_ERROR (Status)) {\r
- return Status;\r
- }\r
-\r
- if (ScopeOpCode == EFI_IFR_DISABLE_IF_OP) {\r
- if (DepthOfDisable == 0) {\r
- InScopeDisable = FALSE;\r
- OpCodeDisabled = FALSE;\r
- } else {\r
- DepthOfDisable--;\r
- }\r
- }\r
- }\r
- continue;\r
- }\r
-\r