From bf0712ae47227f8b80a11d7c961f1ac9e59597c0 Mon Sep 17 00:00:00 2001 From: ydong10 Date: Fri, 18 May 2012 02:43:23 +0000 Subject: Clean ParentHandle field when image is loaded directly from the firmware's boot manager. Signed-off-by: Eric Dong Reviewed-by: Ruiyu Ni git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13324 6f19259b-4bc3-4df7-8a09-765794883524 --- IntelFrameworkModulePkg/Library/GenericBdsLib/BdsBoot.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'IntelFrameworkModulePkg/Library') diff --git a/IntelFrameworkModulePkg/Library/GenericBdsLib/BdsBoot.c b/IntelFrameworkModulePkg/Library/GenericBdsLib/BdsBoot.c index c9c694e648..1c0c6dc646 100644 --- a/IntelFrameworkModulePkg/Library/GenericBdsLib/BdsBoot.c +++ b/IntelFrameworkModulePkg/Library/GenericBdsLib/BdsBoot.c @@ -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 -- cgit v1.2.3