Store physical address as well in the image context

This commit is contained in:
2022-12-04 22:46:33 +01:00
parent b89121fded
commit 6b2f34f287
2 changed files with 2 additions and 0 deletions

View File

@@ -226,6 +226,7 @@ PeLoadImage(IN PEFI_FILE_HANDLE FileHandle,
/* Store image data and virtual address */
ImageData->Data = (PUINT8)(UINT_PTR)Address;
ImageData->PhysicalAddress = (PVOID)(UINT_PTR)Address;
if(VirtualAddress)
{
/* Virtual address passed to this routine */