Skip to content

Commit efe2f12

Browse files
committed
GUI: fixed a bug with copying the wrong number of instructions (thanks to futureproof for the find!)
1 parent 91beff6 commit efe2f12

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

x64_dbg_gui/Project/Src/BasicView/Disassembly.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1175,13 +1175,11 @@ void Disassembly::prepareDataRange(int_t startRva, int_t endRva, QList<Instructi
11751175
{
11761176
int wCount = 0;
11771177
int_t addr = startRva;
1178-
while(addr < endRva)
1178+
while(addr <= endRva)
11791179
{
11801180
addr = getNextInstructionRVA(addr, 1);
11811181
wCount++;
11821182
}
1183-
if(addr - 1 != endRva)
1184-
wCount--;
11851183
prepareDataCount(startRva, wCount, instBuffer);
11861184
}
11871185
}

0 commit comments

Comments
 (0)