Author: khornicek
Date: Sun Sep 10 09:09:57 2017
New Revision: 75818
URL: 
http://svn.reactos.org/svn/reactos?rev=75818&view=rev
Log:
[WIN32K]
- really check whether the requested pixel is outside of the surface in NtGdiGetPixel
CORE-12820
Modified:
    trunk/reactos/win32ss/gdi/ntgdi/bitblt.c
Modified: trunk/reactos/win32ss/gdi/ntgdi/bitblt.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/win32ss/gdi/ntgdi/bitblt.c…
==============================================================================
--- trunk/reactos/win32ss/gdi/ntgdi/bitblt.c    [iso-8859-1] (original)
+++ trunk/reactos/win32ss/gdi/ntgdi/bitblt.c    [iso-8859-1] Sun Sep 10 09:09:57 2017
@@ -1496,7 +1496,9 @@
     /* 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;