From beb79f0a7aa38bdf6818056d8c21c6e599456be8 Mon Sep 17 00:00:00 2001 From: Xusheng Date: Mon, 18 Sep 2023 16:52:14 +0800 Subject: Search in the imports/exports in the triage view also checks the ordinal number. Fix https://github.com/Vector35/binaryninja-api/issues/4590 --- examples/triage/exports.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'examples/triage/exports.cpp') diff --git a/examples/triage/exports.cpp b/examples/triage/exports.cpp index 61f0d491..92560527 100644 --- a/examples/triage/exports.cpp +++ b/examples/triage/exports.cpp @@ -228,6 +228,8 @@ void GenericExportsModel::setFilter(const std::string& filterText) { if (FilteredView::match(entry->GetFullName(), filterText)) m_entries.push_back(entry); + else if (FilteredView::match(std::to_string(entry->GetOrdinal()), filterText)) + m_entries.push_back(entry); } performSort(m_sortCol, m_sortOrder); endResetModel(); -- cgit v1.3.1