diff options
Diffstat (limited to 'Private/NewBoot/Source')
| -rw-r--r-- | Private/NewBoot/Source/FileReader.cxx | 2 | ||||
| -rw-r--r-- | Private/NewBoot/Source/RuntimeMain.cxx | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/Private/NewBoot/Source/FileReader.cxx b/Private/NewBoot/Source/FileReader.cxx index 5768cae0..d81248ea 100644 --- a/Private/NewBoot/Source/FileReader.cxx +++ b/Private/NewBoot/Source/FileReader.cxx @@ -103,7 +103,7 @@ BFileReader::~BFileReader() { @brief this reads all of the buffer. @param ImageHandle used internally. */ -Void BFileReader::Read() { +Void BFileReader::ReadAll() { /// Allocate Handover page. if (mBlob == nullptr) { diff --git a/Private/NewBoot/Source/RuntimeMain.cxx b/Private/NewBoot/Source/RuntimeMain.cxx index 78e73db2..38eb0ea8 100644 --- a/Private/NewBoot/Source/RuntimeMain.cxx +++ b/Private/NewBoot/Source/RuntimeMain.cxx @@ -21,7 +21,7 @@ #error Unknown CPU. #endif // ifdef __x86_64__ -#define kBufferReadSz \ +#define kHeadersSz \ (sizeof(DosHeader) + sizeof(ExecHeader) + sizeof(ExecOptionalHeader)) EFI_EXTERN_C EFI_API Int EfiMain(EfiHandlePtr ImageHandle, @@ -53,8 +53,8 @@ EFI_EXTERN_C EFI_API Int EfiMain(EfiHandlePtr ImageHandle, BFileReader img(L"HCOREKRNL.EXE", ImageHandle); - img.Size(kBufferReadSz); - img.Read(); + img.Size(kHeadersSz); + img.ReadAll(); if (img.Error() == BFileReader::kOperationOkay) { BlobType blob = (BlobType)img.Blob(); |
