[WIN32K]
authorRoel Messiant <roelmessiant@gmail.com>
Thu, 8 Dec 2011 19:38:58 +0000 (19:38 +0000)
committerRoel Messiant <roelmessiant@gmail.com>
Thu, 8 Dec 2011 19:38:58 +0000 (19:38 +0000)
- Probe the whole SIZE struct arguments, not a pointer size. LPSIZE -> SIZE. CID 14119, 14120.

svn path=/trunk/; revision=54617

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

index 67b57b3..275a76e 100644 (file)
@@ -587,7 +587,7 @@ NtGdiScaleViewportExtEx(
     {
         _SEH2_TRY
         {
-            ProbeForWrite(pSize, sizeof(LPSIZE), 1);
+            ProbeForWrite(pSize, sizeof(SIZE), 1);
 
             pSize->cx = pdcattr->szlViewportExt.cx;
             pSize->cy = pdcattr->szlViewportExt.cy;
@@ -633,7 +633,7 @@ NtGdiScaleWindowExtEx(
 
         _SEH2_TRY
         {
-            ProbeForWrite(pSize, sizeof(LPSIZE), 1);
+            ProbeForWrite(pSize, sizeof(SIZE), 1);
 
             X = pdcattr->szlWindowExt.cx;
             if (pdcattr->dwLayout & LAYOUT_RTL) X = -X;