Resource names are strings (#2151)

This commit is contained in:
Itay Cohen 2020-04-15 19:20:57 +03:00 committed by GitHub
parent 56543fa0c7
commit a4cf66d13c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 3 deletions

View File

@ -3121,7 +3121,7 @@ QList<ResourcesDescription> CutterCore::getAllResources()
ResourcesDescription res; ResourcesDescription res;
res.name = resourceObject[RJsonKey::name].toInt(); res.name = resourceObject[RJsonKey::name].toString();
res.vaddr = resourceObject[RJsonKey::vaddr].toVariant().toULongLong(); res.vaddr = resourceObject[RJsonKey::vaddr].toVariant().toULongLong();
res.index = resourceObject[RJsonKey::index].toVariant().toULongLong(); res.index = resourceObject[RJsonKey::index].toVariant().toULongLong();
res.type = resourceObject[RJsonKey::type].toString(); res.type = resourceObject[RJsonKey::type].toString();

View File

@ -239,7 +239,7 @@ struct AnalVTableDescription {
}; };
struct ResourcesDescription { struct ResourcesDescription {
int name; QString name;
RVA vaddr; RVA vaddr;
ut64 index; ut64 index;
QString type; QString type;

View File

@ -27,7 +27,7 @@ QVariant ResourcesModel::data(const QModelIndex &index, int role) const
case Qt::DisplayRole: case Qt::DisplayRole:
switch (index.column()) { switch (index.column()) {
case NAME: case NAME:
return QString::number(res.name); return res.name;
case VADDR: case VADDR:
return RAddressString(res.vaddr); return RAddressString(res.vaddr);
case INDEX: case INDEX: