small fix in TraceFileSearchFuncReturn

This commit is contained in:
torusrxxx 2021-01-05 18:06:13 +08:00
parent 7adea4d975
commit e7edb6ad34
No known key found for this signature in database
GPG Key ID: A795C73A0F1CFADD

View File

@ -152,8 +152,7 @@ unsigned long long TraceFileSearchFuncReturn(TraceFileReader* file, unsigned lon
#endif //_WIN64
)
{
zy.Disassemble(file->Registers(index).regcontext.cip, data, opcodeSize);
if(zy.IsRet())
if(zy.Disassemble(file->Registers(index).regcontext.cip, data, opcodeSize) && zy.IsRet())
return index;
}
}