- Check if CombinedClip is NULL before accesing it

Should fix a crash with Download Master

svn path=/trunk/; revision=50797
This commit is contained in:
Giannis Adamopoulos 2011-02-18 14:26:11 +00:00
parent 6e305f0615
commit 20ec135208

View file

@ -438,7 +438,8 @@ NtGdiGetPixel(HDC hDC, INT XPos, INT YPos)
XPos += dc->ptlDCOrig.x;
YPos += dc->ptlDCOrig.y;
if (RECTL_bPointInRect(&dc->rosdc.CombinedClip->rclBounds, XPos, YPos))
if ((dc->rosdc.CombinedClip == NULL) ||
(RECTL_bPointInRect(&dc->rosdc.CombinedClip->rclBounds, XPos, YPos)))
{
bInRect = TRUE;
psurf = dc->dclevel.pSurface;