Module: wine Branch: master Commit: def420262bd63f97720af921a4967540182ea7a5 URL: http://source.winehq.org/git/wine.git/?a=commit;h=def420262bd63f97720af921a4...
Author: Misha Koshelev mk144210@bcm.edu Date: Wed Jul 4 14:40:24 2007 -0500
gdi32: Slightly simplify result handling in PolyDraw.
---
dlls/gdi32/painting.c | 14 +++++--------- 1 files changed, 5 insertions(+), 9 deletions(-)
diff --git a/dlls/gdi32/painting.c b/dlls/gdi32/painting.c index 3e84f60..4a8b8c9 100644 --- a/dlls/gdi32/painting.c +++ b/dlls/gdi32/painting.c @@ -823,7 +823,7 @@ BOOL WINAPI PolyDraw(HDC hdc, const POINT *lppt, const BYTE *lpbTypes, DWORD cCount) { DC *dc; - BOOL result; + BOOL result = FALSE; POINT lastmove; unsigned int i;
@@ -841,10 +841,8 @@ BOOL WINAPI PolyDraw(HDC hdc, const POINT *lppt, const BYTE *lpbTypes, if( lpbTypes[i] != PT_MOVETO && lpbTypes[i] & PT_BEZIERTO ) { - if( cCount < i+3 ){ - result = FALSE; - goto end; - } + if( cCount < i+3 ) + goto end; else i += 2; } @@ -869,10 +867,8 @@ BOOL WINAPI PolyDraw(HDC hdc, const POINT *lppt, const BYTE *lpbTypes, PolyBezierTo( hdc, &lppt[i], 3 ); i += 2; } - else{ - result = FALSE; - goto end; - } + else + goto end;
if( lpbTypes[i] & PT_CLOSEFIGURE ) {