mirror of https://github.com/x64dbg/zydis
Minor bugfixes
This commit is contained in:
parent
289e85282d
commit
05aba7a445
|
@ -1197,6 +1197,11 @@ ZydisStatus ZydisFormatterFormatInstructionEx(const ZydisFormatter* formatter,
|
||||||
const ZydisStatus status = ZydisFormatInstruction(formatter, instruction, &string, userData);
|
const ZydisStatus status = ZydisFormatInstruction(formatter, instruction, &string, userData);
|
||||||
|
|
||||||
buffer[string.length] = 0;
|
buffer[string.length] = 0;
|
||||||
|
|
||||||
|
if (status == ZYDIS_STATUS_SKIP_OPERAND)
|
||||||
|
{
|
||||||
|
return ZYDIS_STATUS_SUCCESS;
|
||||||
|
}
|
||||||
return status;
|
return status;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1263,6 +1268,11 @@ ZydisStatus ZydisFormatterFormatOperandEx(const ZydisFormatter* formatter,
|
||||||
status = ZYDIS_STATUS_INVALID_PARAMETER;
|
status = ZYDIS_STATUS_INVALID_PARAMETER;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
// Ignore `ZYDIS_STATUS_SKIP_OPERAND`
|
||||||
|
if (status == ZYDIS_STATUS_SKIP_OPERAND)
|
||||||
|
{
|
||||||
|
status = ZYDIS_STATUS_SUCCESS;
|
||||||
|
}
|
||||||
if (!ZYDIS_SUCCESS(status))
|
if (!ZYDIS_SUCCESS(status))
|
||||||
{
|
{
|
||||||
goto FinalizeString;
|
goto FinalizeString;
|
||||||
|
|
Loading…
Reference in New Issue