mirror of https://github.com/x64dbg/zydis
Fixed messed-up assert condition
This commit is contained in:
parent
2431b8f623
commit
dd4c793885
|
@ -1674,7 +1674,7 @@ static ZydisStatus ZydisDecodeOperands(ZydisDecoderContext* context,
|
||||||
const ZydisOperandDefinition* operand;
|
const ZydisOperandDefinition* operand;
|
||||||
instruction->operandCount = ZydisGetOperandDefinitions(definition, &operand);
|
instruction->operandCount = ZydisGetOperandDefinitions(definition, &operand);
|
||||||
|
|
||||||
ZYDIS_ASSERT(instruction->operandCount < ZYDIS_ARRAY_SIZE(instruction->operands));
|
ZYDIS_ASSERT(instruction->operandCount <= ZYDIS_ARRAY_SIZE(instruction->operands));
|
||||||
|
|
||||||
for (uint8_t i = 0; i < instruction->operandCount; ++i)
|
for (uint8_t i = 0; i < instruction->operandCount; ++i)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue