Skip to content

Commit e8d9245

Browse files
authored
Merge d748d3e into e38b5b4
2 parents e38b5b4 + d748d3e commit e8d9245

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

source/_UIAHandler.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -756,7 +756,9 @@ def _isUIAWindowHelper(self,hwnd):
756756
canUseOlderInProcessApproach = bool(appModule.helperLocalBindingHandle)
757757
isOfficeApp = appModule.productName.startswith(("Microsoft Office", "Microsoft Outlook"))
758758
if (
759-
(
759+
# An MS Word document window
760+
windowClass == "_WwG"
761+
and (
760762
winVersion.getWinVer() < winVersion.WIN10
761763
or (
762764
# An MS Office app before build 13901
@@ -767,8 +769,6 @@ def _isUIAWindowHelper(self,hwnd):
767769
)
768770
)
769771
)
770-
# An MS Word document window
771-
and windowClass == "_WwG"
772772
# Disabling is only useful if we can inject in-process (and use our older code)
773773
and canUseOlderInProcessApproach
774774
# Allow the user to still explicitly force UIA support

0 commit comments

Comments
 (0)