From af683e711c4441d7e95dd0bf58271e3fc6d94caf Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Wed, 14 Oct 2009 14:24:17 +0200 Subject: [PATCH] winex11: The xrender tile picture must be used only inside the critical section. --- dlls/winex11.drv/xrender.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dlls/winex11.drv/xrender.c b/dlls/winex11.drv/xrender.c index d83c53d0133..aac04111527 100644 --- a/dlls/winex11.drv/xrender.c +++ b/dlls/winex11.drv/xrender.c @@ -2170,6 +2170,7 @@ BOOL X11DRV_XRender_GetSrcAreaStretch(X11DRV_PDEVICE *physDevSrc, X11DRV_PDEVICE mask_pict = get_xrender_picture_source(physDevSrc); /* Use backgroundPixel as the foreground color */ + EnterCriticalSection( &xrender_cs ); src_pict = get_tile_pict(dst_format, physDevDst->backgroundPixel); /* Create a destination picture and fill it with textPixel color as the background color */ @@ -2181,6 +2182,7 @@ BOOL X11DRV_XRender_GetSrcAreaStretch(X11DRV_PDEVICE *physDevSrc, X11DRV_PDEVICE if(dst_pict) pXRenderFreePicture(gdi_display, dst_pict); wine_tsx11_unlock(); + LeaveCriticalSection( &xrender_cs ); } else /* color -> color but with different depths */ { -- 2.11.4.GIT