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

Spotted by Peter Urbanec.
This commit is contained in:
Eric Pouech 2010-08-25 21:43:52 +02:00 committed by Alexandre Julliard
parent 1e0af22ad2
commit aebb9dd316
1 changed files with 6 additions and 4 deletions

View File

@ -509,14 +509,16 @@ void break_delete_xpoints_from_module(DWORD64 base)
im = im_elf;
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);
}
}
}
}
/***********************************************************************