Don't write to user space with after an error.

svn path=/trunk/; revision=28219
This commit is contained in:
James Tabor 2007-08-07 19:29:48 +00:00
parent 434e1ef9df
commit b82f6444f6

View file

@ -1210,18 +1210,22 @@ NtGdiGetDCPoint( HDC hDC, UINT iPoint, PPOINTL Point)
Ret = FALSE; Ret = FALSE;
break; break;
} }
_SEH_TRY
if (!Ret)
{ {
ProbeForWrite(Point, _SEH_TRY
sizeof(POINT), {
1); ProbeForWrite(Point,
*Point = SafePoint; sizeof(POINT),
1);
*Point = SafePoint;
}
_SEH_HANDLE
{
Status = _SEH_GetExceptionCode();
}
_SEH_END;
} }
_SEH_HANDLE
{
Status = _SEH_GetExceptionCode();
}
_SEH_END;
if(!NT_SUCCESS(Status)) if(!NT_SUCCESS(Status))
{ {