Refine code make callback logic same with frontPage.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9531 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
gikidy 2009-12-07 05:55:07 +00:00
parent 56385d4987
commit bd2057a846
2 changed files with 10 additions and 6 deletions

View File

@ -505,6 +505,10 @@ CallDeviceManager (
//
if (gCallbackKey == DEVICE_MANAGER_KEY_DRIVER_HEALTH) {
CallDriverHealth ();
//
// Force return to Device Manager
//
gCallbackKey = FRONT_PAGE_KEY_DEVICE_MANAGER;
}
//
@ -849,7 +853,7 @@ CallDriverHealth (
// a target to display.
// Process the diver health status states here.
//
if (gCallbackKey >= DRIVER_HEALTH_KEY_OFFSET && gCallbackKey != DRIVER_HEALTH_REPAIR_ALL_KEY && gCallbackKey != FRONT_PAGE_KEY_DEVICE_MANAGER) {
if (gCallbackKey >= DRIVER_HEALTH_KEY_OFFSET && gCallbackKey != DRIVER_HEALTH_REPAIR_ALL_KEY) {
ActionRequest = EFI_BROWSER_ACTION_REQUEST_NONE;
Link = GetFirstNode (&DriverHealthList);
@ -938,12 +942,12 @@ CallDriverHealth (
HiiFreeOpCodeHandle (EndOpCodeHandleRepair);
if (gCallbackKey == DRIVER_HEALTH_RETURN_KEY) {
//
// Force return to Driver Health Form
//
gCallbackKey = DEVICE_MANAGER_KEY_DRIVER_HEALTH;
CallDriverHealth ();
}
if (gCallbackKey == DEVICE_MANAGER_KEY_DRIVER_HEALTH) {
CallDeviceManager();
}
}

View File

@ -1054,7 +1054,7 @@ PlatformBdsEnterFrontPage (
//
// User chose to run the Boot Manager
//
CallBootManager();
CallBootManager ();
break;
case FRONT_PAGE_KEY_DEVICE_MANAGER:
@ -1062,7 +1062,7 @@ PlatformBdsEnterFrontPage (
// Display the Device Manager
//
do {
CallDeviceManager();
CallDeviceManager ();
} while (gCallbackKey == FRONT_PAGE_KEY_DEVICE_MANAGER);
break;