diff options
-rw-r--r-- | EdkModulePkg/Core/Dxe/Dispatcher/Dispatcher.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/EdkModulePkg/Core/Dxe/Dispatcher/Dispatcher.c b/EdkModulePkg/Core/Dxe/Dispatcher/Dispatcher.c index 32ba23a957..fec794821b 100644 --- a/EdkModulePkg/Core/Dxe/Dispatcher/Dispatcher.c +++ b/EdkModulePkg/Core/Dxe/Dispatcher/Dispatcher.c @@ -1018,6 +1018,11 @@ Returns: //
if (gDxeCoreLoadedImage->FilePath == NULL) {
if (CompareGuid (&NameGuid, gDxeCoreFileName)) {
+ //
+ // Because mFvDevicePath has been initialized when discoveried
+ // EFI_FV_FILETYPE_DRIVER file. So only need to update the name
+ // guid of device path.
+ //
CopyGuid (&mFvDevicePath.File.NameGuid, &NameGuid);
gDxeCoreLoadedImage->FilePath = CoreDuplicateDevicePath (
|