Include return instructions in jump out list.

This commit is contained in:
Bartosz Taudul 2020-04-04 14:30:31 +02:00
parent 8c260c9d12
commit 38bfa7bdb6

View File

@ -148,7 +148,7 @@ bool SourceView::Disassemble( uint64_t symAddr, const Worker& worker )
bool hasJump = false;
for( auto j=0; j<detail.groups_count; j++ )
{
if( detail.groups[j] == CS_GRP_JUMP || detail.groups[j] == CS_GRP_CALL )
if( detail.groups[j] == CS_GRP_JUMP || detail.groups[j] == CS_GRP_CALL || detail.groups[j] == CS_GRP_RET )
{
hasJump = true;
break;