Minor bugfixes

This commit is contained in:
flobernd 2017-10-26 20:16:37 +02:00
parent 566ebf8566
commit 20b98c4a70
1 changed files with 1 additions and 1 deletions

View File

@ -1096,7 +1096,7 @@ static void ZydisSetOperandSizeAndElementInfo(ZydisDecoderContext* context,
case ZYDIS_INSTRUCTION_ENCODING_3DNOW:
case ZYDIS_INSTRUCTION_ENCODING_XOP:
case ZYDIS_INSTRUCTION_ENCODING_VEX:
if (operand->mem.type != ZYDIS_MEMOP_TYPE_MEM)
if (operand->mem.type == ZYDIS_MEMOP_TYPE_AGEN)
{
ZYDIS_ASSERT(definition->size[context->eoszIndex] == 0);
operand->size = instruction->addressWidth;