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 /dbe/dbe.c | |
parent | 04c721854fbf1bd6379c165a53fab2bdc09961c0 (diff) |
Convert callers of SecurityLookupWindow() to dixLookupWindow().
Diffstat (limited to 'dbe/dbe.c')
-rw-r--r-- | dbe/dbe.c | 16 |
1 files changed, 7 insertions, 9 deletions
@@ -405,11 +405,9 @@ ProcDbeAllocateBackBufferName(ClientPtr client) REQUEST_SIZE_MATCH(xDbeAllocateBackBufferNameReq); /* The window must be valid. */ - if (!(pWin = SecurityLookupWindow(stuff->window, client, - DixWriteAccess))) - { - return(BadWindow); - } + status = dixLookupWindow(&pWin, stuff->window, client, DixWriteAccess); + if (status != Success) + return status; /* The window must be InputOutput. */ if (pWin->drawable.class != InputOutput) @@ -729,11 +727,11 @@ ProcDbeSwapBuffers(ClientPtr client) /* Check all windows to swap. */ /* Each window must be a valid window - BadWindow. */ - if (!(pWin = SecurityLookupWindow(dbeSwapInfo[i].window, client, - DixWriteAccess))) - { + error = dixLookupWindow(&pWin, dbeSwapInfo[i].window, client, + DixWriteAccess); + if (error != Success) { DEALLOCATE_LOCAL(swapInfo); - return(BadWindow); + return error; } /* Each window must be double-buffered - BadMatch. */ |