1. CoreOpenImageFile(): FilePath should be IN OUT.
2. Use offset address to build device path instead of absolute address. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@4294 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
@ -639,7 +639,7 @@ Returns:
|
||||
BootPolicy,
|
||||
SourceBuffer,
|
||||
SourceSize,
|
||||
FilePath,
|
||||
&FilePath,
|
||||
&DeviceHandle,
|
||||
&FHand,
|
||||
&AuthenticationStatus
|
||||
@ -679,6 +679,7 @@ Returns:
|
||||
//
|
||||
// Pull out just the file portion of the DevicePath for the LoadedImage FilePath
|
||||
//
|
||||
FilePath = OriginalFilePath;
|
||||
Status = CoreHandleProtocol (DeviceHandle, &gEfiDevicePathProtocolGuid, (VOID **)&HandleFilePath);
|
||||
if (!EFI_ERROR (Status)) {
|
||||
FilePathSize = CoreDevicePathSize (HandleFilePath) - sizeof(EFI_DEVICE_PATH_PROTOCOL);
|
||||
|
Reference in New Issue
Block a user