From e6399bbb27c79c4a9fd6a5aa59bf5ed861a45a4f Mon Sep 17 00:00:00 2001 From: flobernd Date: Thu, 21 Sep 2017 19:40:47 +0200 Subject: [PATCH] Reverted last change Need to find a clean solution that works in all possible cases --- src/Formatter.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/Formatter.c b/src/Formatter.c index 24386ab..8306525 100644 --- a/src/Formatter.c +++ b/src/Formatter.c @@ -368,11 +368,6 @@ static ZydisStatus ZydisFormatterPrintImmediateIntel(const ZydisFormatter* forma return ZYDIS_STATUS_INVALID_PARAMETER; } } - if (operand->size == 8) - { - return ZydisPrintHexU( - buffer, bufferLen, (uint8_t)operand->imm.value.u, 2, ZYDIS_TRUE, ZYDIS_TRUE); - } switch (instruction->operandSize) { case 16: