Bug #6911: Check return value of exaGetPixelFromRGBA().

This commit is contained in:
George Fufutos 2006-06-24 15:23:14 +02:00 committed by Michel Dänzer
parent 930b9a069a
commit afb84c2fca

View File

@ -282,8 +282,12 @@ exaTryDriverSolidFill(PicturePtr pSrc,
return -1; return -1;
} }
exaGetPixelFromRGBA(&pixel, red, green, blue, alpha, if (!exaGetPixelFromRGBA(&pixel, red, green, blue, alpha,
pDst->format); pDst->format))
{
REGION_UNINIT(pDst->pDrawable->pScreen, &region);
return -1;
}
if (!(*pExaScr->info->PrepareSolid) (pDstPix, GXcopy, 0xffffffff, pixel)) if (!(*pExaScr->info->PrepareSolid) (pDstPix, GXcopy, 0xffffffff, pixel))
{ {