mirror of
https://github.com/X11Libre/xserver.git
synced 2026-10-04 22:36:10 +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
|
|
@ -344,13 +344,11 @@ winProcSetSelectionOwner (ClientPtr client)
|
|||
if (None != stuff->window)
|
||||
{
|
||||
/* Grab the Window from the request */
|
||||
pWindow = (WindowPtr) SecurityLookupWindow (stuff->window, client,
|
||||
DixReadAccess);
|
||||
if (!pWindow)
|
||||
{
|
||||
int rc = dixLookupWindow(&pWindow, stuff->window, client, DixReadAccess);
|
||||
if (rc != Success) {
|
||||
ErrorF ("winProcSetSelectionOwner - Found BadWindow, aborting.\n");
|
||||
goto winProcSetSelectionOwner_Done;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/* Now we either have a valid window or None */
|
||||
|
|
|
|||
|
|
@ -441,7 +441,7 @@ ProcWindowsWMFrameDraw (register ClientPtr client)
|
|||
WindowPtr pWin;
|
||||
win32RootlessWindowPtr pRLWinPriv;
|
||||
RECT rcNew;
|
||||
int nCmdShow;
|
||||
int nCmdShow, rc;
|
||||
RegionRec newShape;
|
||||
ScreenPtr pScreen;
|
||||
|
||||
|
|
@ -450,11 +450,9 @@ ProcWindowsWMFrameDraw (register ClientPtr client)
|
|||
#if CYGMULTIWINDOW_DEBUG
|
||||
ErrorF ("ProcWindowsWMFrameDraw\n");
|
||||
#endif
|
||||
if (!(pWin = SecurityLookupWindow((Drawable)stuff->window,
|
||||
client, DixReadAccess)))
|
||||
{
|
||||
return BadValue;
|
||||
}
|
||||
rc = dixLookupWindow(&pWin, stuff->window, client, DixReadAccess);
|
||||
if (rc != Success)
|
||||
return rc;
|
||||
#if CYGMULTIWINDOW_DEBUG
|
||||
ErrorF ("ProcWindowsWMFrameDraw - Window found\n");
|
||||
#endif
|
||||
|
|
@ -538,6 +536,7 @@ ProcWindowsWMFrameSetTitle(
|
|||
REQUEST(xWindowsWMFrameSetTitleReq);
|
||||
WindowPtr pWin;
|
||||
win32RootlessWindowPtr pRLWinPriv;
|
||||
int rc;
|
||||
|
||||
#if CYGMULTIWINDOW_DEBUG
|
||||
ErrorF ("ProcWindowsWMFrameSetTitle\n");
|
||||
|
|
@ -545,11 +544,9 @@ ProcWindowsWMFrameSetTitle(
|
|||
|
||||
REQUEST_AT_LEAST_SIZE(xWindowsWMFrameSetTitleReq);
|
||||
|
||||
if (!(pWin = SecurityLookupWindow((Drawable)stuff->window,
|
||||
client, DixReadAccess)))
|
||||
{
|
||||
return BadValue;
|
||||
}
|
||||
rc = dixLookupWindow(&pWin, stuff->window, client, DixReadAccess);
|
||||
if (rc != Success)
|
||||
return rc;
|
||||
#if CYGMULTIWINDOW_DEBUG
|
||||
ErrorF ("ProcWindowsWMFrameSetTitle - Window found\n");
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Reference in a new issue