mirror of https://github.com/x64dbg/zydis
Minor bugfixes
This commit is contained in:
parent
83699fe9d0
commit
3b45ae2f1d
|
@ -632,7 +632,7 @@ static ZydisStatus ZydisReadImmediate(ZydisDecoderContext* context, ZydisInstruc
|
|||
ZYDIS_ASSERT(context);
|
||||
ZYDIS_ASSERT(info);
|
||||
ZYDIS_ASSERT((id == 0) || (id == 1));
|
||||
ZYDIS_ASSERT(isSigned || ~isRelative);
|
||||
ZYDIS_ASSERT(isSigned || !isRelative);
|
||||
ZYDIS_ASSERT(info->details.imm[id].dataSize == 0);
|
||||
|
||||
info->details.imm[id].dataSize = size;
|
||||
|
|
|
@ -508,7 +508,7 @@ void ZydisGetElementInfo(ZydisInternalElementType element, ZydisElementType* typ
|
|||
{ ZYDIS_ELEMENT_TYPE_LONGBCD , 80 }
|
||||
};
|
||||
|
||||
ZYDIS_ASSERT((element >= 0) && (element < ZYDIS_ARRAY_SIZE(lookup)));
|
||||
ZYDIS_ASSERT(element < ZYDIS_ARRAY_SIZE(lookup));
|
||||
|
||||
*type = lookup[element].type;
|
||||
*size = lookup[element].size;
|
||||
|
|
Loading…
Reference in New Issue