Skip to content

Commit b3871bd

Browse files
committed
New "Name RVA" field added to "Export functions".
Latest libpe with fixes.
1 parent 2e82a97 commit b3871bd

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

Pepper/CViewRightBL.cpp

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -311,8 +311,9 @@ void CViewRightBL::CreateListExportFuncs()
311311
m_listExportFuncs->SetHdrColumnColor(0, g_clrOffset);
312312
m_listExportFuncs->InsertColumn(1, L"Function RVA", LVCFMT_CENTER, 100);
313313
m_listExportFuncs->InsertColumn(2, L"Ordinal", LVCFMT_CENTER, 100);
314-
m_listExportFuncs->InsertColumn(3, L"Name", LVCFMT_CENTER, 250);
315-
m_listExportFuncs->InsertColumn(4, L"Forwarder Name", LVCFMT_CENTER, 400);
314+
m_listExportFuncs->InsertColumn(3, L"Name RVA", LVCFMT_CENTER, 100);
315+
m_listExportFuncs->InsertColumn(4, L"Name", LVCFMT_CENTER, 250);
316+
m_listExportFuncs->InsertColumn(5, L"Forwarder Name", LVCFMT_CENTER, 400);
316317

317318
const auto pExport = m_pLibpe->GetExport();
318319
if (pExport == nullptr)
@@ -324,10 +325,11 @@ void CViewRightBL::CreateListExportFuncs()
324325
for (const auto& iterFuncs : pExport->vecFuncs)
325326
{
326327
m_listExportFuncs->InsertItem(listindex, std::format(L"{:08X}", static_cast<DWORD>(dwOffset + sizeof(DWORD) * iterFuncs.dwOrdinal)).data());
327-
m_listExportFuncs->SetItemText(listindex, 1, std::format(L"{:08X}", iterFuncs.dwRVA).data());
328+
m_listExportFuncs->SetItemText(listindex, 1, std::format(L"{:08X}", iterFuncs.dwFuncRVA).data());
328329
m_listExportFuncs->SetItemText(listindex, 2, std::format(L"{}", iterFuncs.dwOrdinal).data());
329-
m_listExportFuncs->SetItemText(listindex, 3, StrToWstr(iterFuncs.strFuncName).data());
330-
m_listExportFuncs->SetItemText(listindex, 4, StrToWstr(iterFuncs.strForwarderName).data());
330+
m_listExportFuncs->SetItemText(listindex, 3, std::format(L"{:08X}", iterFuncs.dwNameRVA).data());
331+
m_listExportFuncs->SetItemText(listindex, 4, StrToWstr(iterFuncs.strFuncName).data());
332+
m_listExportFuncs->SetItemText(listindex, 5, StrToWstr(iterFuncs.strForwarderName).data());
331333
++listindex;
332334
}
333335
m_listExportFuncs->SetRedraw(TRUE);

0 commit comments

Comments
 (0)