mirror of https://github.com/x64dbg/GleeBug
fixed DeleteMemoryBreakpoint
This commit is contained in:
parent
31cbdc957b
commit
0b0caa6f3e
|
|
@ -356,8 +356,13 @@ namespace GleeBug
|
||||||
|
|
||||||
bool Process::DeleteMemoryBreakpoint(ptr address)
|
bool Process::DeleteMemoryBreakpoint(ptr address)
|
||||||
{
|
{
|
||||||
//find the hardware breakpoint
|
//find the memory breakpoint range
|
||||||
auto found = breakpoints.find({ BreakpointType::Hardware, address });
|
auto range = memoryBreakpointRanges.find(Range(address, address));
|
||||||
|
if(range == memoryBreakpointRanges.end())
|
||||||
|
return false;
|
||||||
|
|
||||||
|
//find the memory breakpoint
|
||||||
|
auto found = breakpoints.find({ BreakpointType::Memory, range->first });
|
||||||
if (found == breakpoints.end())
|
if (found == breakpoints.end())
|
||||||
return false;
|
return false;
|
||||||
const auto & info = found->second;
|
const auto & info = found->second;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue