Skip to content

Commit 1fb60ae

Browse files
committed
Fix error handling in GetAccessibleInfoFromPointUIA
1 parent 0b36176 commit 1fb60ae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

TextDlg.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -855,7 +855,7 @@ namespace
855855

856856
CComPtr<IUIAutomationElement> nextParentElement;
857857
hr = treeWalker->GetParentElement(parentElement, &nextParentElement);
858-
if(FAILED(hr) || !parentElement)
858+
if(FAILED(hr) || !nextParentElement)
859859
break;
860860

861861
parentElement.Attach(nextParentElement.Detach());

0 commit comments

Comments
 (0)