//\r
// It take 23 characters including the NULL to print a 64 bits number with "[" and "]".\r
// pow(2, 64) = [18446744073709551616]\r
+// with extra '-' flat, set the width to 24.\r
//\r
-#define MAX_NUMERIC_INPUT_WIDTH 23\r
+#define MAX_NUMERIC_INPUT_WIDTH 24\r
\r
#define EFI_HII_EXPRESSION_INCONSISTENT_IF 0\r
#define EFI_HII_EXPRESSION_NO_SUBMIT_IF 1\r
&BufferSize,\r
HandleBuffer);\r
\r
- } else if (EFI_ERROR (Status)) {\r
+ }\r
+\r
+ if (EFI_ERROR (Status)) {\r
Result->Type = EFI_IFR_TYPE_UNDEFINED;\r
Status = EFI_SUCCESS;\r
goto Done;\r
}\r
\r
+ ASSERT (HandleBuffer != NULL);\r
for ( Index = 0; Index < BufferSize / sizeof(EFI_HANDLE); Index ++) {\r
Status = gBS->HandleProtocol (\r
HandleBuffer[Index],\r
// Option\r
//\r
case EFI_IFR_ONE_OF_OPTION_OP:\r
+ ASSERT (ParentStatement != NULL);\r
if (ParentStatement->Operand == EFI_IFR_ORDERED_LIST_OP && ((((EFI_IFR_ONE_OF_OPTION *) OpCodeData)->Flags & (EFI_IFR_OPTION_DEFAULT | EFI_IFR_OPTION_DEFAULT_MFG)) != 0)) {\r
//\r
// It's keep the default value for ordered list opcode.\r
CopyMem (CurrentOption->SuppressExpression->Expression, GetConditionalExpressionList(ExpressOption), (UINTN) (sizeof (FORM_EXPRESSION *) * ConditionalExprCount));\r
}\r
\r
- ASSERT (ParentStatement != NULL);\r
//\r
// Insert to Option list of current Question\r
//\r