Skip to content

Commit

Permalink
MdeModulePkg/BootMaintenanceManagerUiLib: Produce default opcode for …
Browse files Browse the repository at this point in the history
…timeout

Signed-off-by: Michał Żygowski <[email protected]>
  • Loading branch information
miczyg1 committed Oct 20, 2023
1 parent dfa3aa0 commit ac95c9c
Showing 1 changed file with 15 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,18 @@ BmmCreateTimeOutMenu (
IN VOID *StartOpCodeHandle
)
{
VOID *DefaultOpCodeHandle;

DefaultOpCodeHandle = HiiAllocateOpCodeHandle ();
ASSERT (DefaultOpCodeHandle != NULL);

HiiCreateDefaultOpCode (
DefaultOpCodeHandle,
EFI_HII_DEFAULT_CLASS_STANDARD,
EFI_IFR_TYPE_NUM_SIZE_16,
PcdGet16 (PcdPlatformBootTimeOut)
);

HiiCreateNumericOpCode (
StartOpCodeHandle,
(EFI_QUESTION_ID) FORM_TIME_OUT_ID,
Expand All @@ -135,8 +147,10 @@ BmmCreateTimeOutMenu (
0,
65535,
0,
NULL
DefaultOpCodeHandle
);

HiiFreeOpCodeHandle (DefaultOpCodeHandle);
}

/**
Expand Down

0 comments on commit ac95c9c

Please sign in to comment.