diff options
author | Eamon Walsh <ewalsh@tycho.nsa.gov> | 2006-12-15 15:50:46 -0500 |
---|---|---|
committer | Eamon Walsh <ewalsh@moss-huskies.epoch.ncsc.mil> | 2006-12-15 15:50:46 -0500 |
commit | 25d5e0a629f82d95bd71daf9a920a70e095b5188 (patch) | |
tree | dece82b2dbb04f9810f37f8647eb1de1c2a85baa /randr/rrdispatch.c | |
parent | 04c721854fbf1bd6379c165a53fab2bdc09961c0 (diff) |
Convert callers of SecurityLookupWindow() to dixLookupWindow().
Diffstat (limited to 'randr/rrdispatch.c')
-rw-r--r-- | randr/rrdispatch.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/randr/rrdispatch.c b/randr/rrdispatch.c index b1ec68b83..7f98965a4 100644 --- a/randr/rrdispatch.c +++ b/randr/rrdispatch.c @@ -70,11 +70,12 @@ ProcRRSelectInput (ClientPtr client) WindowPtr pWin; RREventPtr pRREvent, *pHead; XID clientResource; + int rc; REQUEST_SIZE_MATCH(xRRSelectInputReq); - pWin = SecurityLookupWindow (stuff->window, client, DixWriteAccess); - if (!pWin) - return BadWindow; + rc = dixLookupWindow(&pWin, stuff->window, client, DixWriteAccess); + if (rc != Success) + return rc; pHead = (RREventPtr *)SecurityLookupIDByType(client, pWin->drawable.id, RREventType, DixWriteAccess); |