31 Aug
2022
31 Aug
'22
4:48 p.m.
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`. -- https://gitlab.winehq.org/wine/wine/-/merge_requests/749#note_7350