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/getprop.c | |
parent | 670bbb87310503fcc17203cecfa6f4f2f5db51d2 (diff) |
Convert callers of LookupWindow() to dixLookupWindow().
Diffstat (limited to 'Xi/getprop.c')
-rw-r--r-- | Xi/getprop.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/Xi/getprop.c b/Xi/getprop.c index 530841032..058c59514 100644 --- a/Xi/getprop.c +++ b/Xi/getprop.c @@ -100,7 +100,7 @@ int ProcXGetDeviceDontPropagateList(register ClientPtr client) { CARD16 count = 0; - int i; + int i, rc; XEventClass *buf = NULL, *tbuf; WindowPtr pWin; xGetDeviceDontPropagateListReply rep; @@ -115,11 +115,10 @@ ProcXGetDeviceDontPropagateList(register ClientPtr client) rep.length = 0; rep.count = 0; - pWin = (WindowPtr) LookupWindow(stuff->window, client); - if (!pWin) { - client->errorValue = stuff->window; + rc = dixLookupWindow(&pWin, stuff->window, client, DixUnknownAccess); + if (rc != Success) { SendErrorToClient(client, IReqCode, X_GetDeviceDontPropagateList, 0, - BadWindow); + rc); return Success; } |