1
0
Fork 0
fix by lynnux
This commit is contained in:
Duncan Ogilvie 2019-11-10 23:13:01 +01:00
parent c65f65f3b1
commit e2a20266d1
No known key found for this signature in database
GPG Key ID: FC89E0AAA0C1AAD8
1 changed files with 1 additions and 1 deletions

View File

@ -263,7 +263,7 @@ static void ReadImportDirectory(MODINFO & Info, ULONG_PTR FileMapVA)
addressOfDataValue &= ~ordinalFlag;
auto addressOfDataOffset = rva2offset(addressOfDataValue);
if(!addressOfDataOffset) // Invalid entries are ignored. Of course the app will crash if it ever calls the function, but whose fault is that?
if(!addressOfDataOffset && !ordinalFlagSet) // Invalid entries are ignored. Of course the app will crash if it ever calls the function, but whose fault is that?
continue;
Info.imports.emplace_back();