1
0
Fork 0

AssembleDialog : Small fix, assembled instruction would give wrong size because it didn't take current instruction address into account for relative addressing.

This commit is contained in:
Herzeh 2015-12-10 13:16:00 +01:00
parent 9b8bcc70ec
commit bb03b284a2
1 changed files with 1 additions and 1 deletions

View File

@ -68,7 +68,7 @@ void AssembleDialog::compareTypedInstructionToSelected()
selectedInstructionSize = basicInstrInfo.size;
// Get typed in instruction size
if(!DbgFunctions()->Assemble(0, NULL, &typedInstructionSize, editText.toUtf8().constData(), error) || selectedInstructionSize == 0)
if(!DbgFunctions()->Assemble(this->selectedInstrVa, NULL, &typedInstructionSize, editText.toUtf8().constData(), error) || selectedInstructionSize == 0)
{
this->setKeepSizeLabel("<font color='orange'><b>Instruction decoding error : " + QString(error) + "</b></font>");
return;