Skip to content

Commit

Permalink
Debugger: 2.9.1.2: Fixed: Off by one end address when deleting Disasm…
Browse files Browse the repository at this point in the history
…Data_t
  • Loading branch information
Michaelangel007 committed Jan 4, 2022
1 parent 19b7d43 commit 3985ee9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion source/Debugger/Debugger_DisassemblerData.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -671,9 +671,11 @@ void Disassembly_DelData( DisasmData_t tData)
{
if (pData->iDirective != _NOP_REMOVED)
{
if ((nAddress >= pData->nStartAddress) && (nAddress < pData->nEndAddress))
if ((nAddress >= pData->nStartAddress) && (nAddress <= pData->nEndAddress))
{
pData->iDirective = _NOP_REMOVED;

// TODO: delete from vector?
}
}
pData++;
Expand Down

0 comments on commit 3985ee9

Please sign in to comment.