Skip to content

Commit

Permalink
match new r2bin struct type (#121)
Browse files Browse the repository at this point in the history
radareorg/radare2@4a75b94 renamed `o` to `bo`, follow that change so it builds
  • Loading branch information
lowlyw authored Aug 9, 2023
1 parent e7d1832 commit f5d17d2
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/R2Scope.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -442,10 +442,16 @@ Symbol *R2Scope::registerFlag(RFlagItem *flag) const {
void *pos;
r_list_foreach (core->bin->binfiles, iter, pos) {
auto bf = reinterpret_cast<RBinFile *>(pos);
if (!bf->o) {
RBinObject *bo = NULL;
#if R2_VERSION_NUMBER < 50809
bo = bf->o;
#else
bo = bf->bo;
#endif
if (!bo) {
continue;
}
void *s = ht_up_find (bf->o->strings_db, flag->offset, nullptr);
void *s = ht_up_find (bo->strings_db, flag->offset, nullptr);
if (s) {
str = reinterpret_cast<RBinString *>(s);
break;
Expand Down

0 comments on commit f5d17d2

Please sign in to comment.