diff options
author | Eamon Walsh <ewalsh@tycho.nsa.gov> | 2006-12-15 14:11:40 -0500 |
---|---|---|
committer | Eamon Walsh <ewalsh@moss-huskies.epoch.ncsc.mil> | 2006-12-15 14:19:54 -0500 |
commit | 04c721854fbf1bd6379c165a53fab2bdc09961c0 (patch) | |
tree | bb190574a3aaeb80d141d3d7c47d2ddd87afc5b2 /Xi/getselev.c | |
parent | 670bbb87310503fcc17203cecfa6f4f2f5db51d2 (diff) |
Convert callers of LookupWindow() to dixLookupWindow().
Diffstat (limited to 'Xi/getselev.c')
-rw-r--r-- | Xi/getselev.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Xi/getselev.c b/Xi/getselev.c index a84c33d23..533c66cd7 100644 --- a/Xi/getselev.c +++ b/Xi/getselev.c @@ -98,8 +98,7 @@ SProcXGetSelectedExtensionEvents(register ClientPtr client) int ProcXGetSelectedExtensionEvents(register ClientPtr client) { - int i; - int total_length = 0; + int i, rc, total_length = 0; xGetSelectedExtensionEventsReply rep; WindowPtr pWin; XEventClass *buf = NULL; @@ -118,9 +117,10 @@ ProcXGetSelectedExtensionEvents(register ClientPtr client) rep.this_client_count = 0; rep.all_clients_count = 0; - if (!(pWin = LookupWindow(stuff->window, client))) { + rc = dixLookupWindow(&pWin, stuff->window, client, DixUnknownAccess); + if (rc != Success) { SendErrorToClient(client, IReqCode, X_GetSelectedExtensionEvents, 0, - BadWindow); + rc); return Success; } |