Debugger: 2.9.1.2: Fixed: Off by one end address when deleting DisasmData_t

This commit is contained in:
michaelangel007 2022-01-03 21:09:11 -08:00
parent 19b7d43327
commit 3985ee9abc

View File

@ -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++;