Occasionally when using AccessibleObjectFromWindow() a crash will occur. The base cause is a whole bunch of unnecessary calls when we try to return the native accessible for the window. The system's impl of AccessibleObjectFromWindow() uses get_accParent(), and our get_accParent() will return the native OBJID_WINDOW accessible. We're supposed to ignore those calls, but we are getting the root accessible at that point which is unnecessary. Removing that clears up the unnecessary calls and the crash.
Created attachment 200120 [details] [diff] [review] Patch without whitespace changes. It will be checked in with correct indentation.
Comment on attachment 200120 [details] [diff] [review] Patch without whitespace changes. It will be checked in with correct indentation. Sure...
This is not risky. It just moves the GetRootAccessible into the 2 if () sections that use the results. Please take for branch.
Verified that this has been fixed in dev build 10/19/05 build
Note: this fails to compile with --with-windows-version=400