Xorg: fix crash in randr
This commit is contained in:
parent
e8c61af838
commit
4ddda1554f
@ -119,8 +119,9 @@ rdpRRScreenSetSize(ScreenPtr pScreen, CARD16 width, CARD16 height,
|
|||||||
pScreen->mmWidth = mmWidth;
|
pScreen->mmWidth = mmWidth;
|
||||||
pScreen->mmHeight = mmHeight;
|
pScreen->mmHeight = mmHeight;
|
||||||
screenPixmap = pScreen->GetScreenPixmap(pScreen);
|
screenPixmap = pScreen->GetScreenPixmap(pScreen);
|
||||||
g_free(dev->pfbMemory);
|
g_free(dev->pfbMemory_alloc);
|
||||||
dev->pfbMemory = (char *) g_malloc(dev->sizeInBytes, 1);
|
dev->pfbMemory_alloc = (char *) g_malloc(dev->sizeInBytes + 16, 1);
|
||||||
|
dev->pfbMemory = (char *) RDPALIGN(dev->pfbMemory_alloc, 16);
|
||||||
if (screenPixmap != 0)
|
if (screenPixmap != 0)
|
||||||
{
|
{
|
||||||
pScreen->ModifyPixmapHeader(screenPixmap, width, height,
|
pScreen->ModifyPixmapHeader(screenPixmap, width, height,
|
||||||
|
Loading…
Reference in New Issue
Block a user