mshtml: Implement IHTMLAnchorElement_put_href

Jacek Caban jacek at codeweavers.com
Thu Feb 17 03:55:22 CST 2011


Hi Alistair,

On 2/17/11 10:45 AM, Alistair Leslie-Hughes wrote:
> +    IHTMLAnchorElement *anchor = _get_anchor_iface(line, unk);
> +    BSTR str;
> +    HRESULT hres;
> +
> +    str = a2bstr(exhref);
> +    hres = IHTMLAnchorElement_put_href(anchor, str);
> +    ok_(__FILE__,line)(hres == S_OK, "get_href failed: %08x\n", hres);
> +
> +    _test_disp_value(line, unk, exhref);

You leak str here.

Jacek



More information about the wine-devel mailing list