Correct access mode in call to dixLookupWindow() within RRSelectInput.

Reported by Alan Coopersmith.
This commit is contained in:
Eamon Walsh 2009-03-09 17:28:40 -04:00
parent f8dd80d13b
commit 6544490700

View File

@ -76,7 +76,7 @@ ProcRRSelectInput (ClientPtr client)
int rc;
REQUEST_SIZE_MATCH(xRRSelectInputReq);
rc = dixLookupWindow(&pWin, stuff->window, client, DixWriteAccess);
rc = dixLookupWindow(&pWin, stuff->window, client, DixReceiveAccess);
if (rc != Success)
return rc;
pHead = (RREventPtr *)SecurityLookupIDByType(client,