diff --git a/sdk/xtdk/xtimage.h b/sdk/xtdk/xtimage.h index cc7d535..c15447c 100644 --- a/sdk/xtdk/xtimage.h +++ b/sdk/xtdk/xtimage.h @@ -211,6 +211,7 @@ typedef struct _PECOFF_IMAGE_CONTEXT UINT ImagePages; UINT ImageSize; LOADER_MEMORY_TYPE MemoryType; + PVOID PhysicalAddress; PVOID VirtualAddress; } PECOFF_IMAGE_CONTEXT, *PPECOFF_IMAGE_CONTEXT; diff --git a/xtldr/modules/pecoff/pecoff.c b/xtldr/modules/pecoff/pecoff.c index 7994b60..6e085df 100644 --- a/xtldr/modules/pecoff/pecoff.c +++ b/xtldr/modules/pecoff/pecoff.c @@ -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 */