Skip to content
  • Michal Srb's avatar
    Refactor XGetExtensionVersion. · 29c77457
    Michal Srb authored and Peter Hutterer's avatar Peter Hutterer committed
    
    
    _XiGetExtensionVersion was called from XGetExtensionVersion and from
    _XiCheckExtInit. When called from _XiCheckExtInit, nothing accounted for the
    fact that it can return ((XExtensionVersion *) NoSuchExtension) in case of
    error. Also it recursively calls _XiCheckExtInit potentionally causing multiple
    unlocks if _XiCheckExtInit fails.
    -> Remove it and call directly _XiGetExtensionVersionRequest and only call
    _XiCheckExtInit only from XGetExtensionVersion.
    
    Signed-off-by: default avatarMichal Srb <msrb@suse.com>
    Signed-off-by: default avatarPeter Hutterer <peter.hutterer@who-t.net>
    29c77457