From 1f298c24fe1dde35f0d77cc34518eb9c2b873fc5 Mon Sep 17 00:00:00 2001 From: Eamon Walsh Date: Fri, 15 Dec 2006 17:41:52 -0500 Subject: Convert callers of LookupWindow() to dixLookupWindow(). --- src/vmwarexinerama.c | 15 +++++++++------ 1 file 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; -- cgit v1.2.3