зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1598703: Part 1 - Rename PEHeaders::GetIATForModule to PEHeaders::GetImportDescriptor; r=mhowell
Strictly speaking, the import descriptor includes more than just the IAT, so renaming this method to reflect that. Differential Revision: https://phabricator.services.mozilla.com/D57830 --HG-- extra : moz-landing-system : lando
This commit is contained in:
Родитель
a711d1a1ea
Коммит
88b936e379
|
@ -579,7 +579,7 @@ class MOZ_RAII PEHeaders final {
|
|||
}
|
||||
|
||||
PIMAGE_IMPORT_DESCRIPTOR
|
||||
GetIATForModule(const char* aModuleNameASCII) {
|
||||
GetImportDescriptor(const char* aModuleNameASCII) {
|
||||
for (PIMAGE_IMPORT_DESCRIPTOR curImpDesc = GetImportDirectory();
|
||||
IsValid(curImpDesc); ++curImpDesc) {
|
||||
auto curName = mIsImportDirectoryTampered
|
||||
|
@ -602,7 +602,7 @@ class MOZ_RAII PEHeaders final {
|
|||
|
||||
Maybe<Span<IMAGE_THUNK_DATA>> GetIATThunksForModule(
|
||||
const char* aModuleNameASCII) {
|
||||
PIMAGE_IMPORT_DESCRIPTOR impDesc = GetIATForModule(aModuleNameASCII);
|
||||
PIMAGE_IMPORT_DESCRIPTOR impDesc = GetImportDescriptor(aModuleNameASCII);
|
||||
if (!impDesc) {
|
||||
return Nothing();
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче