From d6a2479e6af58f2e919f85b352555c72767a188b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=A9=20van=20Geldorp?= Date: Thu, 28 Aug 2003 19:41:37 +0000 Subject: [PATCH] Fix PolyPolygon and PolyPolyline (patch by Jonathan Wilson) svn path=/trunk/; revision=5905 --- reactos/subsys/win32k/objects/fillshap.c | 5 +++-- reactos/subsys/win32k/objects/line.c | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/reactos/subsys/win32k/objects/fillshap.c b/reactos/subsys/win32k/objects/fillshap.c index 01317225b43..f168eb76667 100644 --- a/reactos/subsys/win32k/objects/fillshap.c +++ b/reactos/subsys/win32k/objects/fillshap.c @@ -16,7 +16,7 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ -/* $Id: fillshap.c,v 1.29 2003/08/26 12:28:53 weiden Exp $ */ +/* $Id: fillshap.c,v 1.30 2003/08/28 19:41:37 gvg Exp $ */ #undef WIN32_LEAN_AND_MEAN #include @@ -271,9 +271,10 @@ NtGdiPolyPolygon(HDC hDC, ret = IntPolygon ( dc, pt, *pc ); if (ret == FALSE) { + DC_UnlockDc ( hDC ); return ret; } - (DWORD)pt+=(DWORD)pc++; + pt+=*pc++; } DC_UnlockDc ( hDC ); } diff --git a/reactos/subsys/win32k/objects/line.c b/reactos/subsys/win32k/objects/line.c index 454bc8a1c4a..1866ac83656 100644 --- a/reactos/subsys/win32k/objects/line.c +++ b/reactos/subsys/win32k/objects/line.c @@ -16,7 +16,7 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ -/* $Id: line.c,v 1.22 2003/08/26 12:28:53 weiden Exp $ */ +/* $Id: line.c,v 1.23 2003/08/28 19:41:37 gvg Exp $ */ // Some code from the WINE project source (www.winehq.com) @@ -466,9 +466,10 @@ NtGdiPolyPolyline(HDC hDC, ret = IntPolyline ( dc, pts, *pc ); if (ret == FALSE) { + DC_UnlockDc( hDC ); return ret; } - (DWORD)pts+=(DWORD)pc++; + pts+=*pc++; } DC_UnlockDc( hDC ); }