Skip to content

Commit

Permalink
Do not use removed rz_bin_get_info() API (#346)
Browse files Browse the repository at this point in the history
  • Loading branch information
XVilka authored Mar 3, 2024
1 parent 0c1f785 commit 48fe381
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/ArchMap.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,10 @@ static const std::map<std::string, std::string> compiler_map = {

std::string CompilerFromCore(RzCore *core)
{
RzBinInfo *info = rz_bin_get_info(core->bin);
RzBinObject *bobj = rz_bin_cur_object(core->bin);
if (!bobj)
return std::string();
const RzBinInfo *info = rz_bin_object_get_info(bobj);
if (!info || !info->rclass)
return std::string();

Expand Down

0 comments on commit 48fe381

Please sign in to comment.