Huw Davies (@huw) commented about dlls/uiautomationcore/uia_client.c:
WINE_DEFAULT_DEBUG_CHANNEL(uiautomation);
+static HRESULT get_safearray_bounds(SAFEARRAY *sa, LONG *lbound, LONG *elems) +{
- LONG ubound;
- HRESULT hr;
- UINT dims;
- *lbound = *elems = 0;
- dims = SafeArrayGetDim(sa);
- if (!dims || (dims > 1))
This seems a complicated way of testing `dims != 1`.