[1/2] winex11.drv: Add PS_USERSTYLE support to pens (take 2)
Alexandre Julliard
julliard at winehq.org
Tue Feb 15 10:43:49 CST 2011
Daniel <danielfsantos at att.net> writes:
> @@ -54,11 +56,13 @@ HPEN CDECL X11DRV_SelectPen( X11DRV_PDEVICE *physDev, HPEN hpen )
> elp = HeapAlloc( GetProcessHeap(), 0, size );
>
> GetObjectW( hpen, size, elp );
> - /* FIXME: add support for user style pens */
> +
> logpen.lopnStyle = elp->elpPenStyle;
> logpen.lopnWidth.x = elp->elpWidth;
> logpen.lopnWidth.y = 0;
> logpen.lopnColor = elp->elpColor;
> + user_style_size = elp->elpNumEntries;
> + user_style = elp->elpStyleEntry;
This can't work, the data will be freed before you use it.
--
Alexandre Julliard
julliard at winehq.org
More information about the wine-devel
mailing list