Fix rva offset when no scnrva in r_bin
This commit is contained in:
parent
7e5f1f5851
commit
0d0bd22374
1 changed files with 5 additions and 1 deletions
|
|
@ -53,7 +53,11 @@ static void get_strings_range(RBinArch *arch, RList *list, int min, ut64 from, u
|
|||
}
|
||||
str[matches] = '\0';
|
||||
ptr->offset = i-matches;
|
||||
ptr->rva = ptr->offset-from+scnrva;
|
||||
if (scnrva) {
|
||||
ptr->rva = (ptr->offset-from+scnrva);
|
||||
} else {
|
||||
ptr->rva = ptr->offset;
|
||||
}
|
||||
//HACK if (scnrva) ptr->rva = ptr->offset-from+scnrva; else ptr->rva = ptr->offset;
|
||||
ptr->size = matches+1;
|
||||
ptr->ordinal = ctr;
|
||||
|
|
|
|||
Loading…
Reference in a new issue