[win32k]
authorGiannis Adamopoulos <gadamopoulos@reactos.org>
Fri, 18 Feb 2011 14:26:11 +0000 (14:26 +0000)
committerGiannis Adamopoulos <gadamopoulos@reactos.org>
Fri, 18 Feb 2011 14:26:11 +0000 (14:26 +0000)
- Check if CombinedClip is NULL before accesing it

Should fix a crash with Download Master

svn path=/trunk/; revision=50797

reactos/subsystems/win32/win32k/objects/bitmaps.c

index 23e8c39..0b3f56e 100644 (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;