summaryrefslogtreecommitdiff
path: root/xfixes/select.c
diff options
context:
space:
mode:
Diffstat (limited to 'xfixes/select.c')
-rwxr-xr-xxfixes/select.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/xfixes/select.c b/xfixes/select.c
index 4c7a49def..d1c22c552 100755
--- a/xfixes/select.c
+++ b/xfixes/select.c
@@ -193,12 +193,12 @@ ProcXFixesSelectSelectionInput (ClientPtr client)
{
REQUEST (xXFixesSelectSelectionInputReq);
WindowPtr pWin;
+ int rc;
REQUEST_SIZE_MATCH (xXFixesSelectSelectionInputReq);
- pWin = (WindowPtr)SecurityLookupWindow(stuff->window, client,
- SecurityReadAccess);
- if (!pWin)
- return(BadWindow);
+ rc = dixLookupWindow(&pWin, stuff->window, client, DixReadAccess);
+ if (rc != Success)
+ return rc;
if (stuff->eventMask & ~SelectionAllEvents)
{
client->errorValue = stuff->eventMask;