mirror of
https://github.com/reactos/reactos.git
synced 2025-01-01 12:04:51 +00:00
NtGdiMoveToEx: copy old cursor pos back to caller instead of copying from caller.
svn path=/trunk/; revision=26314
This commit is contained in:
parent
92c14d1f5f
commit
3f379161d6
1 changed files with 4 additions and 4 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue