NtGdiMoveToEx: copy old cursor pos back to caller instead of copying from caller.

svn path=/trunk/; revision=26314
This commit is contained in:
Timo Kreuzer 2007-04-10 21:58:15 +00:00
parent 92c14d1f5f
commit 3f379161d6

View file

@ -519,14 +519,16 @@ NtGdiMoveToEx(HDC hDC,
return TRUE;
}
Ret = IntGdiMoveToEx(dc, X, Y, (Point ? &SafePoint : NULL));
if(Point)
{
_SEH_TRY
{
ProbeForRead(Point,
ProbeForWrite(Point,
sizeof(POINT),
1);
SafePoint = *Point;
*Point = SafePoint;
}
_SEH_HANDLE
{
@ -542,8 +544,6 @@ NtGdiMoveToEx(HDC hDC,
}
}
Ret = IntGdiMoveToEx(dc, X, Y, (Point ? &SafePoint : NULL));
DC_UnlockDc(dc);
return Ret;
}