mirror of
https://github.com/reactos/reactos.git
synced 2024-10-02 07:26:47 +00:00
[WIN32K]
- really check whether the requested pixel is outside of the surface in NtGdiGetPixel CORE-12820 svn path=/trunk/; revision=75818
This commit is contained in:
parent
6116aa816b
commit
3c1b7f0877
|
@ -1496,7 +1496,9 @@ NtGdiGetPixel(
|
|||
/* Check if the pixel is outside the surface */
|
||||
psurfSrc = pdc->dclevel.pSurface;
|
||||
if ((ptlSrc.x >= psurfSrc->SurfObj.sizlBitmap.cx) ||
|
||||
(ptlSrc.y >= psurfSrc->SurfObj.sizlBitmap.cy))
|
||||
(ptlSrc.y >= psurfSrc->SurfObj.sizlBitmap.cy) ||
|
||||
(ptlSrc.x < 0) ||
|
||||
(ptlSrc.y < 0))
|
||||
{
|
||||
/* Fail! */
|
||||
goto leave;
|
||||
|
|
Loading…
Reference in a new issue