Clean ParentHandle field when image is loaded directly from the firmware's boot manager.

Signed-off-by: Eric Dong <eric.dong@intel.com>
Reviewed-by: Ruiyu Ni <ruiyu.ni@intel.com>

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13324 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
ydong10 2012-05-18 02:43:23 +00:00
parent a95b6045c3
commit bf0712ae47
1 changed files with 6 additions and 0 deletions

View File

@ -812,6 +812,12 @@ BdsLibBootViaBootOption (
ImageInfo->LoadOptionsSize = Option->LoadOptionsSize;
ImageInfo->LoadOptions = Option->LoadOptions;
}
//
// Clean to NULL because the image is loaded directly from the firmwares boot manager.
//
ImageInfo->ParentHandle = NULL;
//
// Before calling the image, enable the Watchdog Timer for
// the 5 Minute period