From 3f379161d6ccb155937a0563c308931c4b30753b Mon Sep 17 00:00:00 2001 From: Timo Kreuzer Date: Tue, 10 Apr 2007 21:58:15 +0000 Subject: [PATCH] NtGdiMoveToEx: copy old cursor pos back to caller instead of copying from caller. svn path=/trunk/; revision=26314 --- reactos/subsystems/win32/win32k/objects/line.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/reactos/subsystems/win32/win32k/objects/line.c b/reactos/subsystems/win32/win32k/objects/line.c index 2214ee90d5b..8f0815dff55 100644 --- a/reactos/subsystems/win32/win32k/objects/line.c +++ b/reactos/subsystems/win32/win32k/objects/line.c @@ -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; }