1
0
Fork 0

DBG: remove the ordinal flag before printing the value

#1795
This commit is contained in:
Duncan Ogilvie 2017-11-15 13:44:36 +01:00
parent c9abfd5229
commit 1c79384a06
No known key found for this signature in database
GPG Key ID: FC89E0AAA0C1AAD8
1 changed files with 1 additions and 1 deletions

View File

@ -115,7 +115,7 @@ bool apienumimports(duint base, const IMPORTENUMCALLBACK & cbEnum)
{
if((imageOftThunkData.u1.Ordinal & IMAGE_ORDINAL_FLAG) == IMAGE_ORDINAL_FLAG)
{
sprintf_s(importName(), MAX_IMPORT_SIZE, "Ordinal%u", imageOftThunkData.u1.Ordinal);
sprintf_s(importName(), MAX_IMPORT_SIZE, "Ordinal%u", imageOftThunkData.u1.Ordinal & ~IMAGE_ORDINAL_FLAG);
}
else
{