mirror of
https://github.com/reactos/reactos.git
synced 2025-07-31 06:52:07 +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
1 changed files with 3 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue