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:
Aaron Klotz 2019-12-23 23:11:07 +00:00
Родитель a711d1a1ea
Коммит 88b936e379
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -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();
}