16 Jul
2025
16 Jul
'25
9:12 a.m.
Jacek Caban (@jacek) commented about dlls/mshtml/htmlelem.c:
return hres; }
+static HTMLDOMAttribute *find_attr_in_list(HTMLAttributeCollection *attrs, DISPID dispid, LONG *pos) +{ + HTMLDOMAttribute *iter, *ret = NULL; + struct list *list = &attrs->attrs; + unsigned i = 0; + + LIST_FOR_EACH_ENTRY(iter, list, HTMLDOMAttribute, entry) { + if(iter->dispid == dispid) { + ret = iter; + break;
There is no need for `ret` variable, you may just return here. -- https://gitlab.winehq.org/wine/wine/-/merge_requests/8251#note_110049