diff --git a/MdeModulePkg/Library/BootMaintenanceManagerUiLib/BootMaintenance.c b/MdeModulePkg/Library/BootMaintenanceManagerUiLib/BootMaintenance.c index 1bf1334189..4b11d8ff17 100644 --- a/MdeModulePkg/Library/BootMaintenanceManagerUiLib/BootMaintenance.c +++ b/MdeModulePkg/Library/BootMaintenanceManagerUiLib/BootMaintenance.c @@ -1094,19 +1094,17 @@ BootMaintCallback ( Private = BMM_CALLBACK_DATA_FROM_THIS (This); + if (Action == EFI_BROWSER_ACTION_RESET_TO_DEFAULT) { + if (QuestionId == FORM_TIME_OUT_ID){ + Value->u16 = PcdGet16 (PcdPlatformBootTimeOut); + //CurrentFakeNVMap->BootTimeOut = PcdGet16 (PcdPlatformBootTimeOut); -- alt take + } + else { + return EFI_UNSUPPORTED; + } - - if (Action == EFI_BROWSER_ACTION_DEFAULT_FIRMWARE) { - //find something like Private->BmmDefaultValues.BootTimeOut - CurrentFakeNVMap->BootTimeOut = Private->BmmOldFakeNVData.BootTimeOut; - - HiiSetBrowserData(...); // Update the value in the HII database - - return EFI_SUCCESS; // Indicate that the operation was successful } - - if (Action == EFI_BROWSER_ACTION_FORM_OPEN) { if (QuestionId == KEY_VALUE_TRIGGER_FORM_OPEN_ACTION) { if (!mFirstEnterBMMForm) {