mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-02 04:13:34 +00:00
Don't write to user space with after an error.
svn path=/trunk/; revision=28219
This commit is contained in:
@@ -1210,18 +1210,22 @@ NtGdiGetDCPoint( HDC hDC, UINT iPoint, PPOINTL Point)
|
||||
Ret = FALSE;
|
||||
break;
|
||||
}
|
||||
_SEH_TRY
|
||||
|
||||
if (!Ret)
|
||||
{
|
||||
ProbeForWrite(Point,
|
||||
sizeof(POINT),
|
||||
1);
|
||||
*Point = SafePoint;
|
||||
_SEH_TRY
|
||||
{
|
||||
ProbeForWrite(Point,
|
||||
sizeof(POINT),
|
||||
1);
|
||||
*Point = SafePoint;
|
||||
}
|
||||
_SEH_HANDLE
|
||||
{
|
||||
Status = _SEH_GetExceptionCode();
|
||||
}
|
||||
_SEH_END;
|
||||
}
|
||||
_SEH_HANDLE
|
||||
{
|
||||
Status = _SEH_GetExceptionCode();
|
||||
}
|
||||
_SEH_END;
|
||||
|
||||
if(!NT_SUCCESS(Status))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user