- Probe the whole SIZE struct arguments, not a pointer size. LPSIZE -> SIZE. CID 14119, 14120.

svn path=/trunk/; revision=54617
This commit is contained in:
Roel Messiant 2011-12-08 19:38:58 +00:00
parent de4cb19466
commit bf06b2113d

View 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;