Guest User

Untitled

a guest
Jun 21st, 2018
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.94 KB | None | 0 0
  1. diff --git a/Xi/xichangehierarchy.c b/Xi/xichangehierarchy.c
  2. index ce6d229..7a8111e 100644
  3. --- a/Xi/xichangehierarchy.c
  4. +++ b/Xi/xichangehierarchy.c
  5. @@ -259,9 +259,15 @@ ProcXIChangeHierarchy(ClientPtr client)
  6.  
  7.  
  8. ptr = GetMaster(ptr, MASTER_POINTER);
  9. + rc = dixLookupDevice(&ptr,
  10. + ptr->id,
  11. + client,
  12. + DixDestroyAccess);
  13. + if (rc != Success)
  14. + goto unwind;
  15. keybd = GetMaster(ptr, MASTER_KEYBOARD);
  16. rc = dixLookupDevice(&keybd,
  17. - ptr->spriteInfo->paired->id,
  18. + keybd->id,
  19. client,
  20. DixDestroyAccess);
  21. if (rc != Success)
Add Comment
Please, Sign In to add comment