mirror of
https://github.com/X11Libre/xserver.git
synced 2026-10-08 23:12:27 +00:00
Convert callers of SecurityLookupWindow() to dixLookupWindow().
This commit is contained in:
parent
04c721854f
commit
25d5e0a629
18 changed files with 273 additions and 312 deletions
|
|
@ -1852,9 +1852,10 @@ ProcXpStartPage(ClientPtr client)
|
|||
if(pContext->state & PAGE_STARTED)
|
||||
return XpErrorBase+XPBadSequence;
|
||||
|
||||
pWin = (WindowPtr)SecurityLookupWindow(stuff->window, client,
|
||||
DixWriteAccess);
|
||||
if (!pWin || pWin->drawable.pScreen->myNum != pContext->screenNum)
|
||||
result = dixLookupWindow(&pWin, stuff->window, client, DixWriteAccess);
|
||||
if (result != Success)
|
||||
return result;
|
||||
if (pWin->drawable.pScreen->myNum != pContext->screenNum)
|
||||
return BadWindow;
|
||||
|
||||
if((c = (XpStPagePtr)xalloc(sizeof(XpStPageRec))) == (XpStPagePtr)NULL)
|
||||
|
|
|
|||
Loading…
Reference in a new issue