From: lgao4 Date: Mon, 20 Nov 2006 03:59:14 +0000 (+0000) Subject: In core\dxe\Dispatcher\Dispatcher.c uses CoreLoadImage with TRUE parameter of BootPol... X-Git-Tag: edk2-stable201903~23896 X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=commitdiff_plain;h=b00c892423d6cbeb90c64c072ad919a64f08b37a In core\dxe\Dispatcher\Dispatcher.c uses CoreLoadImage with TRUE parameter of BootPolicy. But according to CoreLoadImage comments, BootPolicy is TRUE indicates that the request originates from the boot manager. Dispatcher driver is from memory, not from boot manager. So it should call CoreLoadImage with FALSE parameter of BootPolicy. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1981 6f19259b-4bc3-4df7-8a09-765794883524 --- diff --git a/EdkModulePkg/Core/Dxe/Dispatcher/Dispatcher.c b/EdkModulePkg/Core/Dxe/Dispatcher/Dispatcher.c index 82b776f901..68bf63e601 100644 --- a/EdkModulePkg/Core/Dxe/Dispatcher/Dispatcher.c +++ b/EdkModulePkg/Core/Dxe/Dispatcher/Dispatcher.c @@ -437,7 +437,7 @@ Returns: // if (DriverEntry->ImageHandle == NULL) { Status = CoreLoadImage ( - TRUE, + FALSE, gDxeCoreImageHandle, DriverEntry->FvFileDevicePath, NULL,