Commit aebb9dd3 authored by Eric Pouech's avatar Eric Pouech Committed by Alexandre Julliard

winedbg: Don't access inside a bp structure if it's not initialized.

Spotted by Peter Urbanec.
parent 1e0af22a
......@@ -510,13 +510,15 @@ void break_delete_xpoints_from_module(DWORD64 base)
for (i = 0; i < dbg_curr_process->next_bp; i++)
{
if (bp[i].refcount && bp[i].enabled)
{
linear = (DWORD_PTR)memory_to_linear_addr(&bp[i].addr);
if (bp[i].refcount && bp[i].enabled &&
im.BaseOfImage <= linear && linear < im.BaseOfImage + im.ImageSize)
if (im.BaseOfImage <= linear && linear < im.BaseOfImage + im.ImageSize)
{
break_delete_xpoint(i);
}
}
}
}
/***********************************************************************
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment