From 20ec1352081bf5ab07baebde45e594e5b90c986a Mon Sep 17 00:00:00 2001 From: Giannis Adamopoulos Date: Fri, 18 Feb 2011 14:26:11 +0000 Subject: [PATCH] [win32k] - 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 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/reactos/subsystems/win32/win32k/objects/bitmaps.c b/reactos/subsystems/win32/win32k/objects/bitmaps.c index 23e8c395b7d..0b3f56e7d6f 100644 --- a/reactos/subsystems/win32/win32k/objects/bitmaps.c +++ b/reactos/subsystems/win32/win32k/objects/bitmaps.c @@ -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; -- 2.17.1