mirror of
https://github.com/X11Libre/xserver.git
synced 2026-03-25 21:28:50 +00:00
Bug #6911: Check return value of exaGetPixelFromRGBA().
This commit is contained in:
committed by
Michel Dänzer
parent
930b9a069a
commit
afb84c2fca
@@ -282,8 +282,12 @@ exaTryDriverSolidFill(PicturePtr pSrc,
|
||||
return -1;
|
||||
}
|
||||
|
||||
exaGetPixelFromRGBA(&pixel, red, green, blue, alpha,
|
||||
pDst->format);
|
||||
if (!exaGetPixelFromRGBA(&pixel, red, green, blue, alpha,
|
||||
pDst->format))
|
||||
{
|
||||
REGION_UNINIT(pDst->pDrawable->pScreen, ®ion);
|
||||
return -1;
|
||||
}
|
||||
|
||||
if (!(*pExaScr->info->PrepareSolid) (pDstPix, GXcopy, 0xffffffff, pixel))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user