1
0
Fork 0

GUI: fixed a bug with copying the wrong number of instructions (thanks to futureproof for the find!)

This commit is contained in:
Mr. eXoDia 2014-12-29 20:21:51 +01:00
parent 91beff6211
commit efe2f12219
1 changed files with 1 additions and 3 deletions

View File

@ -1175,13 +1175,11 @@ void Disassembly::prepareDataRange(int_t startRva, int_t endRva, QList<Instructi
{
int wCount = 0;
int_t addr = startRva;
while(addr < endRva)
while(addr <= endRva)
{
addr = getNextInstructionRVA(addr, 1);
wCount++;
}
if(addr - 1 != endRva)
wCount--;
prepareDataCount(startRva, wCount, instBuffer);
}
}