diff --git a/hw/xquartz/xpr/appledri.c b/hw/xquartz/xpr/appledri.c index a57f2802a..4d1a82fcc 100644 --- a/hw/xquartz/xpr/appledri.c +++ b/hw/xquartz/xpr/appledri.c @@ -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); diff --git a/hw/xquartz/xpr/appledristr.h b/hw/xquartz/xpr/appledristr.h index bcac03a3b..a3844f090 100644 --- a/hw/xquartz/xpr/appledristr.h +++ b/hw/xquartz/xpr/appledristr.h @@ -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;