[2/2] gdi32: fixed PolyDraw for open path case [try3]

Alexandre Julliard julliard at winehq.org
Mon Jul 2 09:30:05 CDT 2007


"Evan Stade" <estade at gmail.com> writes:

> @@ -838,6 +838,65 @@ BOOL WINAPI PolyDraw(HDC hdc, const POIN
>      }
>      GDI_ReleaseObj( hdc );
>  
> +    if( PATH_IsPathOpen( dc->path ) ){
> +        lastmove.x = orig_pos.x = dc->CursPosX;
> +        lastmove.y = orig_pos.y = dc->CursPosY;

Accessing the DC after GDI_ReleaseObj is not allowed. The code was
doing that already so it's not your bug, but it would be good to fix
it while you're at it. Also like Misha said you should put the open
path case in a separate path function.

-- 
Alexandre Julliard
julliard at winehq.org



More information about the wine-devel mailing list