Skip to content

Commit 1c79384

Browse files
committed
DBG: remove the ordinal flag before printing the value
x64dbg#1795
1 parent c9abfd5 commit 1c79384

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/dbg/addrinfo.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ bool apienumimports(duint base, const IMPORTENUMCALLBACK & cbEnum)
115115
{
116116
if((imageOftThunkData.u1.Ordinal & IMAGE_ORDINAL_FLAG) == IMAGE_ORDINAL_FLAG)
117117
{
118-
sprintf_s(importName(), MAX_IMPORT_SIZE, "Ordinal%u", imageOftThunkData.u1.Ordinal);
118+
sprintf_s(importName(), MAX_IMPORT_SIZE, "Ordinal%u", imageOftThunkData.u1.Ordinal & ~IMAGE_ORDINAL_FLAG);
119119
}
120120
else
121121
{

0 commit comments

Comments
 (0)