x86: printDstIdx() should only print segment in non-64bit mode. bug reported by Filipe Cabecinhas (@filcab)
This commit is contained in:
parent
4aacbea1b6
commit
9417ad6cd5
|
@ -229,7 +229,10 @@ static void printSrcIdx(MCInst *MI, unsigned Op, SStream *O)
|
|||
static void printDstIdx(MCInst *MI, unsigned Op, SStream *O)
|
||||
{
|
||||
// DI accesses are always ES-based.
|
||||
SStream_concat(O, "es:[");
|
||||
if (MI->csh->mode != CS_MODE_64)
|
||||
SStream_concat(O, "es:[");
|
||||
else
|
||||
SStream_concat(O, "[");
|
||||
printOperand(MI, Op, O);
|
||||
SStream_concat(O, "]");
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue