peview: Label unnamed exported variables vs exported functions
@@ -852,13 +852,22 @@ INT_PTR CALLBACK PvpPeExportsDlgProc(
}
else
{
+ if (exportFunction.Function)
lvItemIndex = PhAddListViewItem(lvHandle, MAXINT, L"(unnamed)", NULL);
+ else
+ lvItemIndex = PhAddListViewItem(lvHandle, MAXINT, L"(unnamed variable)", NULL);
}
PhPrintUInt32(number, exportEntry.Ordinal);
PhSetListViewSubItem(lvHandle, lvItemIndex, 1, number);
- if (!exportFunction.ForwardedName)
+ if (exportFunction.ForwardedName)
+ {
+ name = PhZeroExtendToUtf16(exportFunction.ForwardedName);
+ PhSetListViewSubItem(lvHandle, lvItemIndex, 2, name->Buffer);
+ PhDereferenceObject(name);
+ }
+ else
{
if ((ULONG_PTR)exportFunction.Function >= (ULONG_PTR)PvMappedImage.ViewBase)
PhPrintPointer(pointer, PTR_SUB_OFFSET(exportFunction.Function, PvMappedImage.ViewBase));
@@ -867,12 +876,6 @@ INT_PTR CALLBACK PvpPeExportsDlgProc(
PhSetListViewSubItem(lvHandle, lvItemIndex, 2, pointer);
}
- else
- {
- name = PhZeroExtendToUtf16(exportFunction.ForwardedName);
- PhSetListViewSubItem(lvHandle, lvItemIndex, 2, name->Buffer);
- PhDereferenceObject(name);
- }
}
}
}
