summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEamon Walsh <ewalsh@tycho.nsa.gov>2006-12-15 17:44:44 -0500
committerEamon Walsh <ewalsh@moss-huskies.epoch.ncsc.mil>2006-12-15 17:45:24 -0500
commit08575331ac75783c9910cfb6e78db701a29983ac (patch)
tree6779c161ad92d3a3f91013d219db6f4287e88eb1
parente3604fc63243ab0f31673a923d20e23131b607f6 (diff)
Convert callers of LookupWindow() to dixLookupWindow().
-rw-r--r--src/i830_driver.c15
1 files changed, 9 insertions, 6 deletions
diff --git a/src/i830_driver.c b/src/i830_driver.c
index e950d7c3..e133c856 100644
--- a/src/i830_driver.c
+++ b/src/i830_driver.c
@@ -1760,8 +1760,9 @@ I830ProcXineramaGetState(ClientPtr client)
register int n;
REQUEST_SIZE_MATCH(xPanoramiXGetStateReq);
- pWin = LookupWindow(stuff->window, client);
- if(!pWin) return BadWindow;
+ n = dixLookupWindow(&pWin, stuff->window, client, DixUnknownAccess);
+ if (n != Success)
+ return n;
rep.type = X_Reply;
rep.length = 0;
@@ -1785,8 +1786,9 @@ I830ProcXineramaGetScreenCount(ClientPtr client)
register int n;
REQUEST_SIZE_MATCH(xPanoramiXGetScreenCountReq);
- pWin = LookupWindow(stuff->window, client);
- if(!pWin) return BadWindow;
+ n = dixLookupWindow(&pWin, stuff->window, client, DixUnknownAccess);
+ if (n != Success)
+ return n;
rep.type = X_Reply;
rep.length = 0;
@@ -1810,8 +1812,9 @@ I830ProcXineramaGetScreenSize(ClientPtr client)
register int n;
REQUEST_SIZE_MATCH(xPanoramiXGetScreenSizeReq);
- pWin = LookupWindow (stuff->window, client);
- if(!pWin) return BadWindow;
+ n = dixLookupWindow(&pWin, stuff->window, client, DixUnknownAccess);
+ if (n != Success)
+ return n;
rep.type = X_Reply;
rep.length = 0;