On Tue Feb 21 13:31:04 2023 +0000, Nikolay Sivov wrote:
Similarly here, but also might be worth doing a bounds check. Can this data come from some custom source?
No, that bounds checking would be done at the `IWineUiaProvider` level. All properties returning `UIAutomationType_Rect` that I've seen so far usually originate from a method that returns a `struct UiaRect`, so we end up doing the conversion into a safearray ourselves which means the bounds should be correct. If in the future it comes up that a provider returns a safearray itself, we'd probably bounds check it before it reaches this point.
This property in particular comes from [here](https://gitlab.winehq.org/wine/wine/-/blob/master/dlls/uiautomationcore/uia_...), which is a case of us converting from `struct UiaRect`.