Author: tkreuzer
Date: Wed Apr 11 01:58:15 2007
New Revision: 26314
URL:
http://svn.reactos.org/svn/reactos?rev=26314&view=rev
Log:
NtGdiMoveToEx: copy old cursor pos back to caller instead of copying from caller.
Modified:
trunk/reactos/subsystems/win32/win32k/objects/line.c
Modified: trunk/reactos/subsystems/win32/win32k/objects/line.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/ob…
==============================================================================
--- trunk/reactos/subsystems/win32/win32k/objects/line.c (original)
+++ trunk/reactos/subsystems/win32/win32k/objects/line.c Wed Apr 11 01:58:15 2007
@@ -519,14 +519,16 @@
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
{
@@ -541,8 +543,6 @@
return FALSE;
}
}
-
- Ret = IntGdiMoveToEx(dc, X, Y, (Point ? &SafePoint : NULL));
DC_UnlockDc(dc);
return Ret;