Convert callers of LookupWindow() to dixLookupWindow().

This commit is contained in:
Eamon Walsh 2006-12-15 17:44:44 -05:00 committed by Eamon Walsh
parent e3604fc632
commit 08575331ac
1 changed files with 9 additions and 6 deletions

View File

@ -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;