summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorEamon Walsh <ewalsh@tycho.nsa.gov>2006-12-15 17:41:52 -0500
committerEamon Walsh <ewalsh@moss-huskies.epoch.ncsc.mil>2006-12-15 17:41:52 -0500
commit1f298c24fe1dde35f0d77cc34518eb9c2b873fc5 (patch)
tree145878cabfbbfc5cd50e67e7566353d40f9f056a /src
parent9d41384616c8f6d00b53a61634f73e728d86d615 (diff)
Convert callers of LookupWindow() to dixLookupWindow().
Diffstat (limited to 'src')
-rw-r--r--src/vmwarexinerama.c15
1 files changed, 9 insertions, 6 deletions
diff --git a/src/vmwarexinerama.c b/src/vmwarexinerama.c
index 204bade..19ea1bc 100644
--- a/src/vmwarexinerama.c
+++ b/src/vmwarexinerama.c
@@ -115,8 +115,9 @@ VMwareXineramaGetState(ClientPtr client)
VMWAREPtr pVMWARE;
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;
if (!(ext = CheckExtension(PANORAMIX_PROTOCOL_NAME))) {
return BadMatch;
@@ -167,8 +168,9 @@ VMwareXineramaGetScreenCount(ClientPtr client)
VMWAREPtr pVMWARE;
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;
if (!(ext = CheckExtension(PANORAMIX_PROTOCOL_NAME))) {
return BadMatch;
@@ -219,8 +221,9 @@ VMwareXineramaGetScreenSize(ClientPtr client)
VMWAREPtr pVMWARE;
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;
if (!(ext = CheckExtension(PANORAMIX_PROTOCOL_NAME))) {
return BadMatch;