mirror of https://github.com/x64dbg/zydis
Fixed non 64-bit mode mask-register error condition
This commit is contained in:
parent
36f9172dad
commit
1f1be9fa21
|
@ -4297,7 +4297,8 @@ static ZydisStatus ZydisCheckErrorConditions(ZydisDecoderContext* context,
|
|||
}
|
||||
break;
|
||||
case ZYDIS_REG_CONSTRAINTS_MASK:
|
||||
if (context->cache.v_vvvv > 7)
|
||||
if ((context->decoder->machineMode == ZYDIS_MACHINE_MODE_LONG_64) &&
|
||||
(context->cache.v_vvvv > 7))
|
||||
{
|
||||
return ZYDIS_STATUS_BAD_REGISTER;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue