mirror of
https://github.com/reactos/reactos.git
synced 2025-01-06 06:20:13 +00:00
[win32k]
- 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:
parent
6e305f0615
commit
20ec135208
1 changed files with 2 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue