Minor bugfixes

This commit is contained in:
flobernd 2016-09-13 20:24:14 +02:00
parent a636fa353e
commit 317976afbf
9 changed files with 119107 additions and 119097 deletions

View File

@ -13,7 +13,7 @@ The Zydis Instruction Editor was created to easily edit the Zydis instruction da
## Screenshot ##
![Zydis Instruction Editor](/screenshot.png?raw=true "Zydis Instruction Editor")
![Zydis Instruction Editor](/assets/InstructionEditor/screenshot.png?raw=true "Zydis Instruction Editor")
## Compilation ##

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -568,6 +568,7 @@ static ZydisDecoderStatus ZydisDecodeOperandImmediate(ZydisInstructionDecoder* d
// in the lo and hi part of the immediate.
if (info->details.internal.imm8initialized)
{
// TODO: Implement clean solution
operand->imm.value.ubyte = info->details.internal.imm8;
} else
{
@ -861,6 +862,7 @@ static ZydisDecoderStatus ZydisDecodeOperandModrmRm(ZydisInstructionDecoder* dec
if (displacementSize)
{
ZYDIS_CHECK(ZydisDecodeOperandImmediate(decoder, info, operand, displacementSize, true));
info->details.internal.imm8initialized = false;
operand->type = ZYDIS_OPERAND_TYPE_MEMORY;
operand->mem.disp.size = displacementSize;
operand->mem.disp.value.sqword = operand->imm.value.sqword;