diff options
Diffstat (limited to 'src/i830_driver.c')
-rw-r--r-- | src/i830_driver.c | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/src/i830_driver.c b/src/i830_driver.c index e133c856..e950d7c3 100644 --- a/src/i830_driver.c +++ b/src/i830_driver.c @@ -1760,9 +1760,8 @@ I830ProcXineramaGetState(ClientPtr client) register int n; REQUEST_SIZE_MATCH(xPanoramiXGetStateReq); - n = dixLookupWindow(&pWin, stuff->window, client, DixUnknownAccess); - if (n != Success) - return n; + pWin = LookupWindow(stuff->window, client); + if(!pWin) return BadWindow; rep.type = X_Reply; rep.length = 0; @@ -1786,9 +1785,8 @@ I830ProcXineramaGetScreenCount(ClientPtr client) register int n; REQUEST_SIZE_MATCH(xPanoramiXGetScreenCountReq); - n = dixLookupWindow(&pWin, stuff->window, client, DixUnknownAccess); - if (n != Success) - return n; + pWin = LookupWindow(stuff->window, client); + if(!pWin) return BadWindow; rep.type = X_Reply; rep.length = 0; @@ -1812,9 +1810,8 @@ I830ProcXineramaGetScreenSize(ClientPtr client) register int n; REQUEST_SIZE_MATCH(xPanoramiXGetScreenSizeReq); - n = dixLookupWindow(&pWin, stuff->window, client, DixUnknownAccess); - if (n != Success) - return n; + pWin = LookupWindow (stuff->window, client); + if(!pWin) return BadWindow; rep.type = X_Reply; rep.length = 0; |