mirror of
https://github.com/X11Libre/xserver.git
synced 2026-03-27 10:08:30 +00:00
XQuartz: Fix the new ProcAppleDRIDestroyPixmap code REQUEST_SIZE_MATCH.
It had a copy and paste mistake that I didn't notice. :/ It was using the CreatePixmapReq. Also add a missing B16 to the end of the length for the DestroyPixmapReq struct. Now the AppleDRIDestroyPixmap request seem to work. (cherry picked from commit 295fe25bd8fa2d141291a9d9b6ef7b75fcccb4dd)
This commit is contained in:
committed by
Jeremy Huddleston
parent
225853d51d
commit
372977354c
@@ -331,7 +331,7 @@ ProcAppleDRIDestroyPixmap(ClientPtr client)
|
||||
DrawablePtr pDrawable;
|
||||
int rc;
|
||||
REQUEST(xAppleDRIDestroyPixmapReq);
|
||||
REQUEST_SIZE_MATCH(xAppleDRICreatePixmapReq);
|
||||
REQUEST_SIZE_MATCH(xAppleDRIDestroyPixmapReq);
|
||||
|
||||
rc = dixLookupDrawable(&pDrawable, stuff->drawable, client, 0,
|
||||
DixReadAccess);
|
||||
|
||||
@@ -226,7 +226,7 @@ typedef struct {
|
||||
typedef struct {
|
||||
CARD8 reqType; /*1*/
|
||||
CARD8 driReqType; /*2*/
|
||||
CARD16 length; /*4*/
|
||||
CARD16 length B16; /*4*/
|
||||
CARD32 drawable B32; /*8*/
|
||||
} xAppleDRIDestroyPixmapReq;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user